[D3D] Enable branch forward operation in execute buffer
Christian Costa
titan.costa at wanadoo.fr
Fri May 9 01:14:27 CDT 2003
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 at wanadoo.fr
-------------- next part --------------
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;
More information about the wine-patches
mailing list