diff options
author | Keith Whitwell <[email protected]> | 2003-03-24 18:46:57 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2003-03-24 18:46:57 +0000 |
commit | 45bd335b1c17988f23dc16e876deb2054605406f (patch) | |
tree | a6c685c6fb9f35d6a885f3a2898aca8978f1325a | |
parent | 6127672e269e0337bd8c5a018db8cf0353262f49 (diff) |
add glViewport calls
-rw-r--r-- | progs/tests/miniglxsample.c | 2 | ||||
-rw-r--r-- | progs/tests/miniglxtest.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/progs/tests/miniglxsample.c b/progs/tests/miniglxsample.c index 9e54fcdbbb1..bea845c8ff7 100644 --- a/progs/tests/miniglxsample.c +++ b/progs/tests/miniglxsample.c @@ -79,6 +79,8 @@ MakeWindow(Display * dpy, unsigned int width, unsigned int height) /* Bind the rendering context and window */ glXMakeCurrent(dpy, win, ctx); + glViewport(0, 0, width, height); + return win; } diff --git a/progs/tests/miniglxtest.c b/progs/tests/miniglxtest.c index 588afc91916..56d0a4a1c70 100644 --- a/progs/tests/miniglxtest.c +++ b/progs/tests/miniglxtest.c @@ -1,4 +1,4 @@ -/* $Id: miniglxtest.c,v 1.1.4.8 2003/03/24 15:40:34 keithw Exp $ */ +/* $Id: miniglxtest.c,v 1.1.4.9 2003/03/24 18:46:57 keithw Exp $ */ /* * Test the mini GLX interface. @@ -122,6 +122,8 @@ static Window make_rgb_db_window( Display *dpy, glXMakeCurrent( dpy, win, ctx ); + glViewport(0, 0, width, height); + return win; } |