mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 05:50:14 +01:00
Test either GL_FRONT_LEFT or GL_FRONT for front-buffer rendering
For non-stereo visuals, which is all we support, we treat
GL_FRONT_LEFT as GL_FRONT. However, they are technically different,
and they have different enum values. Test for either one to determine
if we're in front-buffer rendering mode.
This fix was suggested by Pierre Willenbrock.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 2085cf2462)
This commit is contained in:
parent
f104e4d666
commit
64f36ff9fb
1 changed files with 2 additions and 1 deletions
|
|
@ -326,7 +326,8 @@ intelDrawBuffer(GLcontext * ctx, GLenum mode)
|
|||
const GLboolean was_front_buffer_rendering =
|
||||
intel->is_front_buffer_rendering;
|
||||
|
||||
intel->is_front_buffer_rendering = (mode == GL_FRONT_LEFT);
|
||||
intel->is_front_buffer_rendering = (mode == GL_FRONT_LEFT)
|
||||
|| (mode == GL_FRONT);
|
||||
|
||||
/* If we weren't front-buffer rendering before but we are now, make sure
|
||||
* that the front-buffer has actually been allocated.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue