Re: Infinite loop in D3D_GL_draw patch

Marius Grigoriu <[email protected]> Thu, 19 Aug 2004 19:30:00 -0400
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <[email protected]>
Ove Kaaven wrote:

>But you can of course test that this change works and submit it as a
>patch here, if you still want this fix in the public CVS.
>  
>
Here it is then, just as you recommended.

Marius
d3dgl-prim.diff (text/x-patch, 629 B)
? d3dgl-prim.diff
? prim.patch
Index: prim.c
===================================================================
RCS file: /cvsroot/winex/dlls/d3dgl/prim.c,v
retrieving revision 1.50
diff -u -r1.50 prim.c
--- prim.c	6 Apr 2004 16:43:59 -0000	1.50
+++ prim.c	19 Aug 2004 23:27:43 -0000
@@ -246,7 +246,7 @@
     intercept = intercept_mode;
 
 render_start:
-    if (intercept || (calc_rect && priv->callbacks.D3dRenderArea)) {
+    if (!feedback && (intercept || (calc_rect && priv->callbacks.D3dRenderArea))) {
 	/* Buffer size estimation is based on:
 	 * Point: token + 2 coords = 3
 	 * Triangle: token + vcount + 6 coords = 8