diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-19 16:48:32 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-19 16:48:32 -0700 |
commit | bfc6f99f7d09eca06470999ceac9cb6611223dec (patch) | |
tree | a46290977669362cb83fd0d183a30faaf4c69417 /tests/sdl_ogl.c | |
parent | c5674220e9f893c4394af5aa86866301d3d12ef6 (diff) |
add single-color immediate mode test (with wrong color, but better than nothing)
Diffstat (limited to 'tests/sdl_ogl.c')
-rw-r--r-- | tests/sdl_ogl.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/sdl_ogl.c b/tests/sdl_ogl.c index 32260f91..4258a663 100644 --- a/tests/sdl_ogl.c +++ b/tests/sdl_ogl.c @@ -138,16 +138,15 @@ int main(int argc, char *argv[]) glTexCoord2i( 1, 1 ); glVertex3f( 300, 400, 0 ); glTexCoord2i( 0, 1 ); glVertex3f( 500, 410, 0 ); glEnd(); -/* + glDisable(GL_TEXTURE_2D); glBegin( GL_QUADS ); - glVertex3f( 10, 10, 0 ); - glVertex3f( 300, 10, 0 ); - glVertex3f( 300, 128, 0 ); - glVertex3f( 10, 128, 0 ); + glVertex3f( 10, 410, 0 ); + glVertex3f( 300, 410, 0 ); + glVertex3f( 300, 480, 0 ); + glVertex3f( 10, 470, 0 ); glEnd(); -*/ SDL_GL_SwapBuffers(); |