diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-04-12 14:14:27 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-04-12 14:14:27 +0100 |
commit | d0c9175f4e930773d732fd4a0de3d1f87da83012 (patch) | |
tree | 3fb479928aff9663c5a4009b00b1451997dd87b5 /glretrace_main.cpp | |
parent | 5caf870ab30803b921cb28b8009eb654e3ac2992 (diff) |
Resize windows at glViewport time.
Diffstat (limited to 'glretrace_main.cpp')
-rw-r--r-- | glretrace_main.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/glretrace_main.cpp b/glretrace_main.cpp index a2d2bdd7..52619dd2 100644 --- a/glretrace_main.cpp +++ b/glretrace_main.cpp @@ -43,7 +43,6 @@ glws::Drawable *drawable = NULL; glws::Context *context = NULL; int window_width = 256, window_height = 256; -bool reshape_window = false; unsigned frame = 0; long long startTime = 0; @@ -115,7 +114,7 @@ static void snapshot(Image::Image &image) { static void frame_complete(void) { ++frame; - if (!reshape_window && (snapshot_prefix || compare_prefix)) { + if (snapshot_prefix || compare_prefix) { Image::Image *ref = NULL; if (compare_prefix) { char filename[PATH_MAX]; @@ -145,12 +144,6 @@ static void frame_complete(void) { } } - if (reshape_window) { - // XXX: doesn't quite work - drawable->resize(window_width, window_height); - reshape_window = false; - } - ws->processEvents(); } |