Enable is_front_buffer_rendering variable in case of GL_FRONT_AND_BACK
authorAnuj Phogat <anuj.phogat@gmail.com>
Fri, 6 Jan 2012 20:48:45 +0000 (12:48 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Wed, 11 Jan 2012 22:25:11 +0000 (14:25 -0800)
commitc979fe3e200f42ff1fad75ebdbebe69da27e1aaa
tree91528681064ea56a54f2e889dc9318db93744f84
parent04e262ebe978872b7da0a04ae1fe6fe2129743fc
Enable is_front_buffer_rendering variable in case of GL_FRONT_AND_BACK

glDrawBuffer(GL_FRONT_AND_BACK) results in to segmentation fault if
intel->is_front_buffer_rendering is not enabled with GL_FRONT_AND_BACK.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44153

Reported-by: Yi Sun <yi.sun@intel.com>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_buffers.c