提交 aee51246 编写于 作者: S Simon Fels

Drop unneeded ifdef

上级 905a1a9f
......@@ -207,8 +207,6 @@ bool TextureDraw::draw(GLuint texture) {
s_gles2.glBindTexture(GL_TEXTURE_2D, texture);
s_gles2.glUniform1i(mTextureSlot, 0);
#if 1
// Validate program, just to be sure.
s_gles2.glValidateProgram(mProgram);
GLint validState = 0;
......@@ -220,7 +218,6 @@ bool TextureDraw::draw(GLuint texture) {
ERR("%s: Could not run program: %s\n", __FUNCTION__, messages);
return false;
}
#endif
// Do the rendering.
s_gles2.glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册