Enable branch forward operation in execute buffer.

This commit is contained in:
Christian Costa 2003-05-11 03:28:53 +00:00 committed by Alexandre Julliard
parent 4ea9589981
commit 0955adfc2e
1 changed files with 7 additions and 3 deletions

View File

@ -595,11 +595,15 @@ static void execute(IDirect3DExecuteBufferImpl *This,
if ((This->data.dsStatus.dwStatus & ci->dwMask) == ci->dwValue) { if ((This->data.dsStatus.dwStatus & ci->dwMask) == ci->dwValue) {
if (!ci->bNegate) { 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 { } else {
if (ci->bNegate) { 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 @@ static void execute(IDirect3DExecuteBufferImpl *This,
} break; } break;
default: default:
ERR("Unhandled OpCode !!!\n"); ERR("Unhandled OpCode %d !!!\n",current->bOpcode);
/* Try to save ... */ /* Try to save ... */
instr += count * size; instr += count * size;
break; break;