Fix initialization of pfPitch - measured in pixels, not bytes.

This commit is contained in:
Keith Whitwell 2006-09-22 15:22:32 +00:00
parent 1c2c1c4560
commit 4fa3cf225f

View file

@ -380,7 +380,7 @@ intel_create_renderbuffer(GLenum intFormat, GLsizei width, GLsizei height,
intel_set_span_functions(&irb->Base);
irb->pfMap = map;
irb->pfPitch = pitch;
irb->pfPitch = pitch / cpp; /* in pixels */
#if 00
irb->region = intel_region_create_static(intel,