aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_pixel.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2009-06-19 22:03:37 -0700
committerEric Anholt <[email protected]>2009-06-19 22:17:46 -0700
commitafc981ee46791838f3cb83e11eb33938aa3efc83 (patch)
treeacea8c9548068264b45bae0fdf73bd8ab20441e5 /src/mesa/drivers/dri/intel/intel_pixel.c
parentdcfe0d66bfff9a55741aee298b7ffb051a48f0d3 (diff)
intel: Update Mesa state before span setup in glReadPixels.
We could have mapped the wrong set of draw buffers. Noticed while looking into a DRI2 glean ReadPixels issue.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_pixel.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_pixel.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel.c b/src/mesa/drivers/dri/intel/intel_pixel.c
index 36a684b3b85..da9ccb23f14 100644
--- a/src/mesa/drivers/dri/intel/intel_pixel.c
+++ b/src/mesa/drivers/dri/intel/intel_pixel.c
@@ -424,10 +424,8 @@ intelInitPixelFuncs(struct dd_function_table *functions)
functions->Bitmap = intelBitmap;
functions->CopyPixels = intelCopyPixels;
functions->DrawPixels = intelDrawPixels;
-#ifdef I915
- functions->ReadPixels = intelReadPixels;
-#endif
}
+ functions->ReadPixels = intelReadPixels;
}
void