From 872f6a4fb13a4be20b27d6588c758504f697504e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 19 Apr 2012 17:32:54 -0700 Subject: clean up immediate mode code and optimize to not use indexes when not necessary --- tests/sdl_ogl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/sdl_ogl.c') 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 ); -- cgit v1.2.3-18-g5258