diff --git a/tests/float_tex.cpp b/tests/float_tex.cpp index b80457a3ba5bc..f30323894aced 100644 --- a/tests/float_tex.cpp +++ b/tests/float_tex.cpp @@ -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);