[3/4] wined3d: Improve IWineD3DVolumeImpl_LoadTexture TRACE output

H. Verbeet hverbeet at gmail.com
Mon Apr 23 15:03:00 CDT 2007


The This pointer and surface format are pretty useful to know.

Changelog:
  - Improve IWineD3DVolumeImpl_LoadTexture TRACE output
-------------- next part --------------
---

 dlls/wined3d/volume.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c
index 9033c8a..c50e489 100644
--- a/dlls/wined3d/volume.c
+++ b/dlls/wined3d/volume.c
@@ -264,7 +264,10 @@ static HRESULT WINAPI IWineD3DVolumeImpl_SetContainer(IWineD3DVolume *iface, IWi
 
 static HRESULT WINAPI IWineD3DVolumeImpl_LoadTexture(IWineD3DVolume *iface, GLenum gl_level) {
     IWineD3DVolumeImpl *This     = (IWineD3DVolumeImpl *)iface;
-    const PixelFormatDesc *formatEntry = getFormatDescEntry(This->resource.format);
+    WINED3DFORMAT format = This->resource.format;
+    const PixelFormatDesc *formatEntry = getFormatDescEntry(format);
+
+    TRACE("(%p) : level %u, format %s (0x%08x)\n", This, gl_level, debug_d3dformat(format), format);
 
     if(GL_SUPPORT(EXT_TEXTURE3D)) {
         TRACE("Calling glTexImage3D %x level=%d, intfmt=%x, w=%d, h=%d,d=%d, 0=%d, glFmt=%x, glType=%x, Mem=%p\n",


More information about the wine-patches mailing list