aboutsummaryrefslogtreecommitdiff
path: root/tests/sdl_ogl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sdl_ogl.c')
-rw-r--r--tests/sdl_ogl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sdl_ogl.c b/tests/sdl_ogl.c
index 4258a663..2165ed64 100644
--- a/tests/sdl_ogl.c
+++ b/tests/sdl_ogl.c
@@ -139,7 +139,9 @@ int main(int argc, char *argv[])
glTexCoord2i( 0, 1 ); glVertex3f( 500, 410, 0 );
glEnd();
+#if !EMSCRIPTEN
glDisable(GL_TEXTURE_2D);
+#endif
glBegin( GL_QUADS );
glVertex3f( 10, 410, 0 );