diff options
author | Brian Paul <[email protected]> | 2006-10-21 21:13:40 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-10-21 21:13:40 +0000 |
commit | 4676b6260f7e3c6144f4346c0660603a031b1834 (patch) | |
tree | 4641f36b4fad3e865c5d6a312ef5241dfcb25e0c /src/mesa | |
parent | f614a6190562e550257afca0d04e3846648942e8 (diff) |
don't use params passed to Clear()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/windows/gdi/wmesa.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 78e3d9ec8d1..0dfd7a6b393 100644 --- a/src/mesa/drivers/windows/gdi/wmesa.c +++ b/src/mesa/drivers/windows/gdi/wmesa.c @@ -284,10 +284,14 @@ static void clear_color(GLcontext *ctx, const GLfloat color[4]) static void clear(GLcontext *ctx, GLbitfield mask, GLboolean all, - GLint x, GLint y, - GLint width, GLint height) + GLint xFoo, GLint yFoo, + GLint widthFoo, GLint heightFoo) { #define FLIP(Y) (ctx->DrawBuffer->Height - (Y) - 1) + const GLint x = ctx->DrawBuffer->_Xmin; + const GLint y = ctx->DrawBuffer->_Ymin; + const GLint height = ctx->DrawBuffer->_Ymax - ctx->DrawBuffer->_Ymin; + const GLint width = ctx->DrawBuffer->_Xmax - ctx->DrawBuffer->_Xmin; WMesaContext pwc = wmesa_context(ctx); WMesaFramebuffer pwfb = wmesa_framebuffer(ctx->DrawBuffer); |