Browse Source

gpu: disable alpha test on GL ES platforms.

legacy
Sam Hocevar sam 11 years ago
parent
commit
024ea25e27
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/gpu/renderer.cpp

+ 3
- 1
src/gpu/renderer.cpp View File

@@ -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;


Loading…
Cancel
Save