diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-15 15:19:45 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-15 15:19:45 -0700 |
commit | 2fe9f7e20db08c99e09db8f4159d94ff2158b15f (patch) | |
tree | 4be2035a50deb8e494b07b404d55eb503df1addc | |
parent | 0a5bbc89fdc51ca7df8ae2d360640c80a782ffdf (diff) |
fix sdl_ogl.c for native builds
-rw-r--r-- | tests/sdl_ogl.c | 4 |
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 ); |