04-16-2012, 10:21 AM
(This post was last modified: 04-16-2012, 12:12 PM by nightflyer.)
I've been looking at the code and I'm pretty sure the problem is that this code is missing in setClearModeSettings in grapics\RE\BaseRenderingEngineFunction.java:
// Keep this test for non shader use.
// Certain games lack or incorrectly display graphics without this
// (e.g.: "Worms Open Warfare 2").
if (stencil) {
re.enableFlag(GU_STENCIL_TEST);
re.setStencilFunc(GeCommands.STST_FUNCTION_ALWAYS_PASS_STENCIL_TEST, 0, 0);
re.setStencilOp(GeCommands.SOP_KEEP_STENCIL_VALUE, GeCommands.SOP_KEEP_STENCIL_VALUE, GeCommands.SOP_ZERO_STENCIL_VALUE);
}
I'm not sure, but it might be that adding this code again is enough to fix theese issues with hardware rendering.
// Keep this test for non shader use.
// Certain games lack or incorrectly display graphics without this
// (e.g.: "Worms Open Warfare 2").
if (stencil) {
re.enableFlag(GU_STENCIL_TEST);
re.setStencilFunc(GeCommands.STST_FUNCTION_ALWAYS_PASS_STENCIL_TEST, 0, 0);
re.setStencilOp(GeCommands.SOP_KEEP_STENCIL_VALUE, GeCommands.SOP_KEEP_STENCIL_VALUE, GeCommands.SOP_ZERO_STENCIL_VALUE);
}
I'm not sure, but it might be that adding this code again is enough to fix theese issues with hardware rendering.