From 71ede82f6db192548336e2b069ce6f64fbd6dfe4 Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 3 Apr 2013 06:28:09 +0800 Subject: [PATCH] Fix in-game flickering in Dissidia Final Fantasy --- GPU/GLES/DisplayListInterpreter.cpp | 3 +++ UI/MenuScreens.cpp | 2 +- UI/UIShader.cpp | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/DisplayListInterpreter.cpp b/GPU/GLES/DisplayListInterpreter.cpp index 5cf982c71d..1b907a9b4a 100644 --- a/GPU/GLES/DisplayListInterpreter.cpp +++ b/GPU/GLES/DisplayListInterpreter.cpp @@ -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(); diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index da0b53e60f..161e4ef667 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -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; diff --git a/UI/UIShader.cpp b/UI/UIShader.cpp index cf23a64f4c..098168ff2e 100644 --- a/UI/UIShader.cpp +++ b/UI/UIShader.cpp @@ -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);