Fix in-game flickering in Dissidia Final Fantasy

This commit is contained in:
raven02 authored and unknown committed 2013-04-03 06:36:37 +08:00
1 parent 44b22bc6ff
commit 71ede82f6d
3 files changed
+6 -2

No files matched your search

+3
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();
+1 -1
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;
+2 -1
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);