wined3d: Skip unhandled opcodes in vshaders.

This commit is contained in:
Ivan Gyurdiev 2006-04-16 05:43:47 -04:00 committed by Alexandre Julliard
parent d486b93e30
commit 0d6eaf363d
2 changed files with 5 additions and 1 deletions

View File

@ -1378,7 +1378,7 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateProgramArbHW(IWineD3DPixelSha
} else {
FIXME("Can't handle opcode %s in hwShader\n", curOpcode->name);
}
pToken += curOpcode->num_params; /* maybe + 1 */
pToken += curOpcode->num_params;
continue;
}

View File

@ -1672,7 +1672,11 @@ inline static VOID IWineD3DVertexShaderImpl_GenerateProgramArbHW(IWineD3DVertexS
} else {
FIXME("Can't handle opcode %s in hwShader\n", curOpcode->name);
}
pToken += curOpcode->num_params;
continue;
}
if (curOpcode->num_params > 0) {
vshader_program_add_param(This, *pToken, FALSE, tmpLine);