summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/context.h
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2018-11-16 09:56:34 +0100
committerErik Faye-Lund <[email protected]>2018-12-03 18:16:44 +0100
commit76b038bee7ea4a5cead8d949c290b9ee0ff5998d (patch)
tree93088c4daba7e4b3c372a85538de844edf7df345 /src/mesa/main/context.h
parent19eb0bf28fa1d6742bfb9d7b920fe5ce5254e251 (diff)
mesa/main: do not allow stencil-texture enums on gles1
ctx->Extensions.ARB_texture_stencil8 is set regardless of the API that's used, so checking for those direcly will always allow the enums from this extensions when they are supported by the driver. So let's instead check for both ARB_texture_stencil8 and OES_texture_stencil8, so we support depth textures on OpenGL and OpenGL ES 2.0+. There's no extension enabling stencil-textures for OpenGL ES 1.x, so we shouldn't allow those enums there. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/context.h')
0 files changed, 0 insertions, 0 deletions