Vincent Pelletier : wined3d: Make WARN about oversized texture output surface and texture sizes.

Alexandre Julliard julliard at winehq.org
Sat Jan 3 09:11:21 CST 2009


Module: wine
Branch: master
Commit: 23dcf61e611bf6372d2ed7ff8aa8c8fbdd410e18
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=23dcf61e611bf6372d2ed7ff8aa8c8fbdd410e18

Author: Vincent Pelletier <plr.vincent at gmail.com>
Date:   Fri Jan  2 21:42:32 2009 +0100

wined3d: Make WARN about oversized texture output surface and texture sizes.

---

 dlls/wined3d/surface.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 67097ac..3aca76c 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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 */




More information about the wine-cvs mailing list