From 024ea25e276e2c0d0eacac7e97381a73f0864287 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 22 Jun 2013 18:37:02 +0000 Subject: [PATCH] gpu: disable alpha test on GL ES platforms. --- src/gpu/renderer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpu/renderer.cpp b/src/gpu/renderer.cpp index d5f93d5d..07053056 100644 --- a/src/gpu/renderer.cpp +++ b/src/gpu/renderer.cpp @@ -218,7 +218,7 @@ void Renderer::SetAlphaFunc(AlphaFunc func, float alpha) m_data->m_d3d_dev->SetRenderState(D3DRS_ALPHAREF, (DWORD)(alpha * 255.999f)); } -#else +#elif defined HAVE_GL_2X switch (func) { case AlphaFunc::Disabled: @@ -245,6 +245,8 @@ void Renderer::SetAlphaFunc(AlphaFunc func, float alpha) glDisable(GL_ALPHA_TEST); else glEnable(GL_ALPHA_TEST); +#else + /* XXX: alpha test not available in GL ES */ #endif m_data->m_alpha_func = func;