aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/drivers/dri
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-11-21 08:43:25 +0100
committermarha <marha@users.sourceforge.net>2013-11-21 08:43:25 +0100
commitbb953a87489963f63e65c797a1f2837382ff7808 (patch)
tree458f44ffc1539fad170d96a414970a42b75d1190 /mesalib/src/mesa/drivers/dri
parent73db05c85f7a8cf2439f7c333ede6ff2dc4877d7 (diff)
downloadvcxsrv-bb953a87489963f63e65c797a1f2837382ff7808.tar.gz
vcxsrv-bb953a87489963f63e65c797a1f2837382ff7808.tar.bz2
vcxsrv-bb953a87489963f63e65c797a1f2837382ff7808.zip
xserver mesa git update 21 nov 2013
xserver commit 6403cbb143c67872ca9c58e3116ae7942def0ae1 mesa commit b7c0b61782251c1dedb0b0fb0e6654af81249910
Diffstat (limited to 'mesalib/src/mesa/drivers/dri')
-rw-r--r--mesalib/src/mesa/drivers/dri/swrast/swrast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesalib/src/mesa/drivers/dri/swrast/swrast.c b/mesalib/src/mesa/drivers/dri/swrast/swrast.c
index c062071b0..73dc5c4c0 100644
--- a/mesalib/src/mesa/drivers/dri/swrast/swrast.c
+++ b/mesalib/src/mesa/drivers/dri/swrast/swrast.c
@@ -406,8 +406,8 @@ swrast_map_renderbuffer(struct gl_context *ctx,
(char *) xrb->Base.Buffer,
dPriv->loaderPrivate);
- *out_map = xrb->Base.Buffer;
- *out_stride = stride;
+ *out_map = xrb->Base.Buffer + (h - 1) * stride;
+ *out_stride = -stride;
return;
}