mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 22:30:11 +01:00
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>
This commit is contained in:
parent
04e262ebe9
commit
c979fe3e20
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ intelDrawBuffer(struct gl_context * ctx, GLenum mode)
|
|||
intel->is_front_buffer_rendering;
|
||||
|
||||
intel->is_front_buffer_rendering = (mode == GL_FRONT_LEFT)
|
||||
|| (mode == GL_FRONT);
|
||||
|| (mode == GL_FRONT) || (mode == GL_FRONT_AND_BACK);
|
||||
|
||||
/* If we weren't front-buffer rendering before but we are now,
|
||||
* invalidate our DRI drawable so we'll ask for new buffers
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue