diff options
author | Xiang, Haihao <[email protected]> | 2008-02-03 20:36:17 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-02-03 20:36:17 +0800 |
commit | e36857d841c0c973abb8536a20e7d5a7e01223d3 (patch) | |
tree | 0adb0344eef1246f61c87573a63df67a5a8cc7e0 /src/mesa | |
parent | 30c9d96ebf038864485139064c47aeb0d0319598 (diff) |
i965: fix potential NULL pointer dereference. The third region
isn't created at all for 965
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_context.c | 3 |
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 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); } |