Possible fix for onscreen buttons turning black sometimes.

This commit is contained in:
Henrik Rydgard 2013-04-21 14:20:37 +02:00
parent 628c223234
commit 0f8e0f556f

View File

@ -99,6 +99,7 @@ void UIShader_Prepare()
glstate.blend.enable();
glstate.blendFunc.set(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glstate.blendEquation.set(GL_FUNC_ADD);
glstate.depthWrite.set(GL_TRUE);
glstate.colorMask.set(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);