[D3D 32] Some small fixes / improvements

Lionel Ulmer lionel.ulmer at free.fr
Sat Dec 21 13:26:57 CST 2002


Changelog:
 - fix small TRACE bug introduced in a previous patch
 - add WRAPU / WRAPV warning

-- 
		 Lionel Ulmer - http://www.bbrox.org/
-------------- next part --------------
--- ../wine_base/dlls/ddraw/mesa.c	Sun Dec 15 22:06:43 2002
+++ dlls/ddraw/mesa.c	Sat Dec 21 17:41:23 2002
@@ -109,6 +109,16 @@
 		    glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
 	        break;
 
+	    case D3DRENDERSTATE_WRAPU: /* 5 */
+	        if (dwRenderState)
+		    ERR("WRAPU mode unsupported by OpenGL.. Expect graphical glitches !\n");
+	        break;
+	      
+	    case D3DRENDERSTATE_WRAPV: /* 6 */
+	        if (dwRenderState)
+		    ERR("WRAPV mode unsupported by OpenGL.. Expect graphical glitches !\n");
+	        break;
+
 	    case D3DRENDERSTATE_ZENABLE:          /*  7 */
 	        if (dwRenderState)
 		    glEnable(GL_DEPTH_TEST);
--- ../wine_base/dlls/ddraw/dsurface/main.c	Sat Dec 21 14:49:17 2002
+++ dlls/ddraw/dsurface/main.c	Sat Dec 21 18:29:22 2002
@@ -991,8 +991,9 @@
 	TRACE(" - locking flags : "); DDRAW_dump_lockflag(flags);
     }
     if (WARN_ON(ddraw)) {
-	if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY))
+	if (flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY)) {
 	    WARN(" - unsupported locking flag : "); DDRAW_dump_lockflag(flags & ~(DDLOCK_WAIT|DDLOCK_READONLY|DDLOCK_WRITEONLY));
+	}
     }
 
     /* First, copy the Surface description */


More information about the wine-patches mailing list