Skip to content

Commit

Permalink
Clean up redundant warnings in tests/float_tex.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Dec 11, 2014
1 parent 5b35165 commit 8c863fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/float_tex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ static void gl_init(void) {
/* Get the locations of the uniforms so we can access them */
nodeSamplerLocation = glGetUniformLocation(program, "nodeInfo");
glBindAttribLocation(program, 0, "indices");
#ifndef __EMSCRIPTEN__ // GLES2 & WebGL do not have these, only pre 3.0 desktop GL and compatibility mode GL3.0+ GL do.
//Enable glPoint size in shader, always enable in Open Gl ES 2.
glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
glEnable(GL_POINT_SPRITE);
#endif
}
int main(int argc, char *argv[]) {
glutInit(&argc, argv);
Expand Down

0 comments on commit 8c863fe

Please sign in to comment.