aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/sdl_ogl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/sdl_ogl.c b/tests/sdl_ogl.c
index 172ec8ec..9aaae280 100644
--- a/tests/sdl_ogl.c
+++ b/tests/sdl_ogl.c
@@ -51,7 +51,9 @@ int main(int argc, char *argv[])
glClearColor( 0, 0, 0, 0 );
- //glEnable( GL_TEXTURE_2D ); // Need this to display a texture XXX unnecessary in OpenGL ES 2.0/WebGL
+#if !EMSCRIPTEN
+ glEnable( GL_TEXTURE_2D ); // Need this to display a texture XXX unnecessary in OpenGL ES 2.0/WebGL
+#endif
glViewport( 0, 0, 640, 480 );