Enable dithering in the UI (helpful for the new soft gradient)

This commit is contained in:
Henrik Rydgard 2013-08-20 18:03:25 +02:00
parent 7b62459463
commit 0761e3cb21

View File

@ -11,6 +11,7 @@ void UIContext::Begin() {
glstate.blendFunc.set(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glstate.cullFace.disable();
glstate.depthTest.disable();
glstate.dither.enable();
#if !defined(USING_GLES2)
glstate.colorLogicOp.disable();
#endif
@ -27,6 +28,7 @@ void UIContext::BeginNoTex() {
glstate.blendFunc.set(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glstate.cullFace.disable();
glstate.depthTest.disable();
glstate.dither.enable();
#if !defined(USING_GLES2)
glstate.colorLogicOp.disable();
#endif