[Mesa-dev] [PATCH] Enable is_front_buffer_rendering variable in case of GL_FRONT_AND_BACK
Sun, Yi
yi.sun at intel.com
Mon Jan 9 17:27:36 PST 2012
> 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 at intel.com>
> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
> src/mesa/drivers/dri/intel/intel_buffers.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c
> b/src/mesa/drivers/dri/intel/intel_buffers.c
> index 4632751..9809f79 100644
> --- a/src/mesa/drivers/dri/intel/intel_buffers.c
> +++ b/src/mesa/drivers/dri/intel/intel_buffers.c
> @@ -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
> --
> 1.7.7.4
This patch fixes the segmentation fault issue while calling function glDrawBuffer.
Tested-by: Sun Yi <yi.sun at intel.com>
Thanks
--Yi,Sun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120110/eb618d69/attachment.htm>
More information about the mesa-dev
mailing list