diff options
author | Brian <[email protected]> | 2007-08-17 10:28:20 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-17 10:28:20 +0100 |
commit | ae64d5c173a4525800383668cc91c176a1bd7a15 (patch) | |
tree | 8b29d0922354be0728182d532764f32b6aa99b77 /src/mesa/drivers/x11/xm_buffer.c | |
parent | 93efcf50fae7bdd9ee9468f4f4049ecb4c06e2df (diff) |
fix buffer clearing problems
Diffstat (limited to 'src/mesa/drivers/x11/xm_buffer.c')
-rw-r--r-- | src/mesa/drivers/x11/xm_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_buffer.c b/src/mesa/drivers/x11/xm_buffer.c index 52629aca182..b8d3df1379a 100644 --- a/src/mesa/drivers/x11/xm_buffer.c +++ b/src/mesa/drivers/x11/xm_buffer.c @@ -253,7 +253,8 @@ finish_surface_init(GLcontext *ctx, struct xmesa_renderbuffer *xrb) { struct pipe_context *pipe = ctx->st->pipe; if (!xrb->St.surface->region) { - xrb->St.surface->region = pipe->region_alloc(pipe, 1, 0, 0, 0x0); + int w = 1, h = 1; + xrb->St.surface->region = pipe->region_alloc(pipe, 1, w, h, 0x0); } } |