summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/remap.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-12-18 13:26:03 -0800
committerIan Romanick <[email protected]>2013-01-15 14:59:40 -0800
commitfd3891cbbe8f11c297edf0a6bf0580f69024722e (patch)
tree5b0982b00ce32c2a6aa774a19910fc42a1f2df16 /src/mesa/main/remap.h
parentd786bf2c2acbafe2ac32e7fd5b8f9a6b09f3d968 (diff)
mesa: Handle GL_BACK correctly for ES 3.0 in glDrawBuffers().
In ES 3.0, when calling glDrawBuffers() on the window system framebuffer, the only valid targets are GL_NONE or GL_BACK. Since there is no stereo rendering in ES 3.0, this is a single buffer, unlike desktop where it may be two (and thus isn't allowed). For single-buffered configs, GL_BACK ironically means the front (and only) buffer. I'm not sure that it matters, however, as ES shouldn't have front buffer rendering in the first place. Fixes es3conform framebuffer_blit_coverage_default_draw_buffer_binding. v2: Update GLES3 spec reference. Signed-off-by: Anuj Phogat <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> Signed-off-by: Ian Romanick <[email protected]> [v2] Reviewed-by: Anuj Phogat <[email protected]> Reviewed-by: Ian Romanick <[email protected]> [v1]
Diffstat (limited to 'src/mesa/main/remap.h')
0 files changed, 0 insertions, 0 deletions