[D3D] Enable branch forward operation in execute buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch enables 3D display in Motoracer 2 demo which is now playable.

Bye.

Changelog :
Enable branch forward operation in execute buffer.

Christian Costa titan.costa@wanadoo.fr

Index: d3dexecutebuffer.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/d3dexecutebuffer.c,v
retrieving revision 1.25
diff -u -r1.25 d3dexecutebuffer.c
--- d3dexecutebuffer.c	15 Mar 2003 00:12:43 -0000	1.25
+++ d3dexecutebuffer.c	9 May 2003 05:43:58 -0000
@@ -595,11 +595,15 @@
 
 		    if ((This->data.dsStatus.dwStatus & ci->dwMask) == ci->dwValue) {
 		        if (!ci->bNegate) {
-			    TRACE(" Should branch to %ld\n", ci->dwOffset);
+			    TRACE(" Branch to %ld\n", ci->dwOffset);
+			    instr = (char*)current + ci->dwOffset;
+			    break;
 			}
 		    } else {
 		        if (ci->bNegate) {
-			    TRACE(" Should branch to %ld\n", ci->dwOffset);
+			    TRACE(" Branch to %ld\n", ci->dwOffset);
+			    instr = (char*)current + ci->dwOffset;
+			    break;
 			}
 		    }
 
@@ -627,7 +631,7 @@
 	    } break;
 
 	    default:
-	        ERR("Unhandled OpCode !!!\n");
+	        ERR("Unhandled OpCode %d !!!\n",current->bOpcode);
 	        /* Try to save ... */
 	        instr += count * size;
 	        break;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux