diff options
author | Brian Paul <[email protected]> | 2012-01-16 11:48:18 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-24 14:12:24 -0700 |
commit | 1e1b5cb01a10e39d01923e3c7e989c44210950cd (patch) | |
tree | 6ed5e6042194c7126c5ebfcb8f30b1738c54d4b6 /src/mesa/drivers/dri/swrast | |
parent | 82846fea4d042466ccfd5b3c86d98e856086cc05 (diff) |
mesa: remove gl_renderbuffer:RowStride field
Diffstat (limited to 'src/mesa/drivers/dri/swrast')
-rw-r--r-- | src/mesa/drivers/dri/swrast/swrast.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c index e7f121ecf7c..efc55272508 100644 --- a/src/mesa/drivers/dri/swrast/swrast.c +++ b/src/mesa/drivers/dri/swrast/swrast.c @@ -292,7 +292,6 @@ swrast_alloc_front_storage(struct gl_context *ctx, struct gl_renderbuffer *rb, rb->Data = NULL; rb->Width = width; rb->Height = height; - rb->RowStride = width; xrb->pitch = bytes_per_line(width * xrb->bpp, 32); return GL_TRUE; @@ -387,7 +386,7 @@ swrast_map_renderbuffer(struct gl_context *ctx, struct swrast_renderbuffer *xrb = swrast_renderbuffer(rb); GLubyte *map = rb->Data; int cpp = _mesa_get_format_bytes(rb->Format); - int stride = rb->RowStride * cpp; + int stride = rb->Width * cpp; if (rb->AllocStorage == swrast_alloc_front_storage) { __DRIdrawable *dPriv = xrb->dPriv; |