wined3d: Make WARN about oversized texture output surface and texture sizes.
authorVincent Pelletier <plr.vincent@gmail.com>
Fri, 2 Jan 2009 20:42:32 +0000 (21:42 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Sat, 3 Jan 2009 13:55:31 +0000 (14:55 +0100)
dlls/wined3d/surface.c

index 67097ace7c3910117423b742d7a9e500ca18d2db..3aca76c5c79f84740eea625895a9b7df98cd3bfc 100644 (file)
@@ -3865,7 +3865,8 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_PrivateSetup(IWineD3DSurface *iface) {
         3:    WARN and return WINED3DERR_NOTAVAILABLE;
         4: Create the surface, but allow it to be used only for DirectDraw Blts. Some apps(e.g. Swat 3) create textures with a Height of 16 and a Width > 3000 and blt 16x16 letter areas from them to the render target.
         */
-        WARN("(%p) Creating an oversized surface\n", This);
+        WARN("(%p) Creating an oversized surface: %ux%u (texture is %ux%u)\n",
+             This, This->pow2Width, This->pow2Height, This->currentDesc.Width, This->currentDesc.Height);
         This->Flags |= SFLAG_OVERSIZE;
 
         /* This will be initialized on the first blt */