Browse Source

neercs: deactivate OpenGL code when we build for OpenGL ES.

master
Sam Hocevar 12 years ago
parent
commit
8e2afeba55
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      neercs/video/text-render.cpp

+ 1
- 1
neercs/video/text-render.cpp View File

@@ -122,9 +122,9 @@ void TextRender::Render()
glEnable(GL_POINT_SPRITE); glEnable(GL_POINT_SPRITE);
//glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); //glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
glDisable(GL_POINT_SMOOTH); glDisable(GL_POINT_SMOOTH);
#endif
glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_TRUE); glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_TRUE);
#endif
m_shader->Bind(); m_shader->Bind();
m_font->Bind(); m_font->Bind();
m_shader->SetUniform(m_texture, 0); m_shader->SetUniform(m_texture, 0);


Loading…
Cancel
Save