diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-05-24 10:13:42 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-05-24 10:13:42 +0200 |
commit | a6d312ccb942b50287777fc22dc69de926ea3412 (patch) | |
tree | 0acabef2e78a97e7cd1742b9d98acb2a1b496e72 /tests/sdl_ogl_p.c | |
parent | c3570e254952ba0593038993674473e900ada9e0 (diff) | |
parent | b7ce870dd4b1352e308e212e77cd6161c1ec904e (diff) |
Merge branch 'master' into llvmsvn
Diffstat (limited to 'tests/sdl_ogl_p.c')
-rw-r--r-- | tests/sdl_ogl_p.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/sdl_ogl_p.c b/tests/sdl_ogl_p.c index 3978f66c..949aaa44 100644 --- a/tests/sdl_ogl_p.c +++ b/tests/sdl_ogl_p.c @@ -58,10 +58,12 @@ int main(int argc, char *argv[]) glViewport( 0, 0, 640, 480 ); glMatrixMode( GL_PROJECTION ); - glLoadIdentity(); + GLfloat matrixData[] = { 2.0/640, 0, 0, 0, + 0, -2.0/480, 0, 0, + 0, 0, -1, 0, + -1, 1, 0, 1 }; + glLoadMatrixf(matrixData); // test loadmatrix - glOrtho( 0, 640, 480, 0, -1, 1 ); - glMatrixMode( GL_MODELVIEW ); glLoadIdentity(); |