i965: fix potential NULL pointer dereference. The third region
authorXiang, Haihao <haihao.xiang@intel.com>
Sun, 3 Feb 2008 12:36:17 +0000 (20:36 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Sun, 3 Feb 2008 12:36:17 +0000 (20:36 +0800)
isn't created at all for 965

src/mesa/drivers/dri/i965/intel_context.c

index 646e43eecf688f0b6a79e48ad29a95f4cd9a20fb..83a00303df9f9829d28c108144a6506c3ecc3544 100644 (file)
@@ -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);
          }