Browse Source

gpu: fix GLES 2.x support.

undefined
Sam Hocevar 8 years ago
parent
commit
7939719ce1
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/gpu/renderer.cpp

+ 4
- 0
src/gpu/renderer.cpp View File

@@ -376,6 +376,8 @@ void Renderer::SetAlphaFunc(AlphaFunc func, float alpha)
m_data->m_d3d_dev->SetRenderState(D3DRS_ALPHAREF, m_data->m_d3d_dev->SetRenderState(D3DRS_ALPHAREF,
(DWORD)(alpha * 255.999f)); (DWORD)(alpha * 255.999f));
} }
#elif defined HAVE_GLES_2X
/* not supported */
#elif defined GL_VERSION_1_1 #elif defined GL_VERSION_1_1
switch (func) switch (func)
{ {
@@ -810,6 +812,8 @@ void Renderer::SetPolygonMode(PolygonMode mode)
m_data->m_d3d_dev->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID); m_data->m_d3d_dev->SetRenderState(D3DRS_FILLMODE, D3DFILL_SOLID);
break; break;
} }
#elif defined HAVE_GLES_2X
/* not supported */
#elif defined GL_VERSION_1_1 #elif defined GL_VERSION_1_1
switch (mode) switch (mode)
{ {


Loading…
Cancel
Save