diff options
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_span.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_span.c b/src/mesa/drivers/dri/i915/intel_span.c index a0f848f7b0..c3ffc4b2ac 100644 --- a/src/mesa/drivers/dri/i915/intel_span.c +++ b/src/mesa/drivers/dri/i915/intel_span.c @@ -43,7 +43,7 @@ intelContextPtr intel = INTEL_CONTEXT(ctx); \ __DRIdrawablePrivate *dPriv = intel->driDrawable; \ driRenderbuffer *drb = (driRenderbuffer *) rb; \ - GLuint pitch = drb->pitch * drb->cpp; \ + GLuint pitch = drb->pitch; \ GLuint height = dPriv->h; \ char *buf = (char *) drb->Base.Data + \ dPriv->x * drb->cpp + \ @@ -55,7 +55,7 @@ intelContextPtr intel = INTEL_CONTEXT(ctx); \ __DRIdrawablePrivate *dPriv = intel->driDrawable; \ driRenderbuffer *drb = (driRenderbuffer *) rb; \ - GLuint pitch = drb->pitch * drb->cpp; \ + GLuint pitch = drb->pitch; \ GLuint height = dPriv->h; \ char *buf = (char *) drb->Base.Data + \ dPriv->x * drb->cpp + \ @@ -133,7 +133,7 @@ do { \ intelContextPtr intel = INTEL_CONTEXT(ctx); \ __DRIdrawablePrivate *dPriv = intel->driDrawable; \ driRenderbuffer *drb = (driRenderbuffer *) rb; \ - GLuint pitch = drb->pitch * drb->cpp; \ + GLuint pitch = drb->pitch; \ GLuint height = dPriv->h; \ char *buf = (char *)drb->Base.Data + \ dPriv->x * drb->cpp + \ |