From e36857d841c0c973abb8536a20e7d5a7e01223d3 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Sun, 3 Feb 2008 20:36:17 +0800 Subject: [PATCH] i965: fix potential NULL pointer dereference. The third region isn't created at all for 965 --- src/mesa/drivers/dri/i965/intel_context.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_context.c b/src/mesa/drivers/dri/i965/intel_context.c index 646e43eecf6..83a00303df9 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); } -- 2.30.2