From: Brian Paul Date: Sat, 21 Oct 2006 21:13:40 +0000 (+0000) Subject: don't use params passed to Clear() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4676b6260f7e3c6144f4346c0660603a031b1834;p=mesa.git don't use params passed to Clear() --- 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);