summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-02-03 20:36:17 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-02-03 20:36:17 +0800
commite36857d841c0c973abb8536a20e7d5a7e01223d3 (patch)
tree0adb0344eef1246f61c87573a63df67a5a8cc7e0 /src
parent30c9d96ebf038864485139064c47aeb0d0319598 (diff)
i965: fix potential NULL pointer dereference. The third region
isn't created at all for 965
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c
index 646e43eecf..83a00303df 100644
--- a/src/mesa/drivers/dri/i965/intel_context.c
+++ b/src/mesa/drivers/dri/i965/intel_context.c
@@ -685,10 +685,13 @@ GLboolean intelMakeCurrent(__DRIcontextPrivate *driContextPriv,
intel_renderbuffer_set_region(intel_fb->color_rb[1],
intel->back_region);
}
+
+#if 0
if (intel_fb->color_rb[2]) {
intel_renderbuffer_set_region(intel_fb->color_rb[2],
intel->third_region);
}
+#endif
if (irbDepth) {
intel_renderbuffer_set_region(irbDepth, intel->depth_region);
}