From 0761e3cb21bb3e409aad8d9e8f46e86ed73af4f4 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Tue, 20 Aug 2013 18:03:25 +0200 Subject: [PATCH] Enable dithering in the UI (helpful for the new soft gradient) --- ui/ui_context.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/ui_context.cpp b/ui/ui_context.cpp index b66e917cf1..fdbc9ee297 100644 --- a/ui/ui_context.cpp +++ b/ui/ui_context.cpp @@ -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