Fix in-game flickering in Dissidia Final Fantasy

This commit is contained in:
raven02 2013-04-03 06:28:09 +08:00 committed by unknown
parent 44b22bc6ff
commit 71ede82f6d
3 changed files with 6 additions and 2 deletions

View File

@ -263,6 +263,9 @@ bool GLES_GPU::FramebufferDirty() {
}
void GLES_GPU::CopyDisplayToOutput() {
glstate.depthWrite.set(GL_TRUE);
glstate.colorMask.set(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
transformDraw_.Flush();
EndDebugDraw();

View File

@ -340,7 +340,7 @@ void PauseScreen::render() {
ctx->RebindTexture();
}
ui_draw2d.DrawText(UBUNTU48, title, 10+144+10, 30, 0xFFFFFFFF, ALIGN_LEFT);
ui_draw2d.DrawText(UBUNTU48, title, 10+144+10, 20, 0xFFFFFFFF, ALIGN_LEFT);
int x = 30;
int y = 50;

View File

@ -100,7 +100,8 @@ void UIShader_Prepare()
glstate.blend.enable();
glstate.blendFunc.set(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glstate.colorMask.set(true, true, true, true);
glstate.depthWrite.set(GL_TRUE);
glstate.colorMask.set(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glstate.Restore();
uiTexture->Bind(0);