mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 01:40:14 +01:00
st/mesa: fix glReadBuffer(GL_NONE) segfault
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=73956
Cc: 10.0 <mesa-stable@lists.freedesktop.org>
Tested-by: Ahmed Allam <ahmabdabd@hotmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit f7c118ffbf)
This commit is contained in:
parent
b1694c9f87
commit
79ef990ef8
1 changed files with 2 additions and 1 deletions
|
|
@ -648,7 +648,8 @@ st_ReadBuffer(struct gl_context *ctx, GLenum buffer)
|
|||
(void) buffer;
|
||||
|
||||
/* add the renderbuffer on demand */
|
||||
st_manager_add_color_renderbuffer(st, fb, fb->_ColorReadBufferIndex);
|
||||
if (fb->_ColorReadBufferIndex >= 0)
|
||||
st_manager_add_color_renderbuffer(st, fb, fb->_ColorReadBufferIndex);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue