diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-19 17:32:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-19 17:32:54 -0700 |
commit | 872f6a4fb13a4be20b27d6588c758504f697504e (patch) | |
tree | e69a37858e2ecb08b63f5fa4396727502c7358ef /tests/sdl_ogl.c | |
parent | bfc6f99f7d09eca06470999ceac9cb6611223dec (diff) |
clean up immediate mode code and optimize to not use indexes when not necessary
Diffstat (limited to 'tests/sdl_ogl.c')
-rw-r--r-- | tests/sdl_ogl.c | 2 |
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 ); |