From f0e8676248f4804cd09ff445bac55d709f09555f Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 23 Jun 2013 14:41:57 +0000 Subject: [PATCH] gpu: don't use PolygonMode on GL ES. --- src/gpu/renderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpu/renderer.cpp b/src/gpu/renderer.cpp index 09b5789c..742f96ff 100644 --- a/src/gpu/renderer.cpp +++ b/src/gpu/renderer.cpp @@ -343,7 +343,7 @@ void Renderer::SetAlphaFunc(AlphaFunc func, float alpha) m_data->m_d3d_dev->SetRenderState(D3DRS_ALPHAREF, (DWORD)(alpha * 255.999f)); } -#elif defined HAVE_GL_2X +#elif defined GL_VERSION_1_1 switch (func) { case AlphaFunc::Disabled: @@ -371,7 +371,7 @@ void Renderer::SetAlphaFunc(AlphaFunc func, float alpha) else glEnable(GL_ALPHA_TEST); #else - /* XXX: alpha test not available in GL ES */ + /* XXX: alpha test not available in GL ES and deprecated anyway. */ #endif m_data->m_alpha_func = func; @@ -671,7 +671,7 @@ void Renderer::SetPolygonMode(PolygonMode mode) m_data->m_d3d_dev->SetRenderState(D3DRS_FILLMODE, D3DCULL_SOLID); break; } -#else +#elif defined __CELLOS_LV2__ || defined GL_VERSION_1_1 switch (mode) { case PolygonMode::Point: