diff options
author | Karl Schultz <kschultz@freedesktop.org> | 2006-03-30 18:03:41 +0000 |
---|---|---|
committer | Karl Schultz <kschultz@freedesktop.org> | 2006-03-30 18:03:41 +0000 |
commit | c3f2c287cec8457a9830fd04901e4c13e99fd260 (patch) | |
tree | 1a9cbcad1820d5a7715475eab419512f11cbf0b3 /src/mesa/drivers | |
parent | 9e81d6ae3a6db9831d6aea0fe4d92722176e9f74 (diff) |
Fix logic error in viewport function so that we still resize the buffers if the viewport and the window both change to the same new size. This lets the gloss demo work with the -f option.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/windows/gdi/wmesa.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 789fe53c3d..08eee4d9dc 100644 --- a/src/mesa/drivers/windows/gdi/wmesa.c +++ b/src/mesa/drivers/windows/gdi/wmesa.c @@ -1080,14 +1080,11 @@ static void wmesa_viewport(GLcontext *ctx, wmesa_get_buffer_size(ctx->WinSysDrawBuffer, &new_width, &new_height); - if (new_width != width || new_height != height) { - /** - * Either the window was resized or the viewport changed - not sure which. - * So call resize buffers to resize them if the window size changed. - */ - wmesa_resize_buffers(ctx, ctx->WinSysDrawBuffer, new_width, new_height); - ctx->NewState |= _NEW_BUFFERS; /* to update scissor / window bounds */ - } + /** + * Resize buffers if the window size changed. + */ + wmesa_resize_buffers(ctx, ctx->WinSysDrawBuffer, new_width, new_height); + ctx->NewState |= _NEW_BUFFERS; /* to update scissor / window bounds */ } |