diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2013-01-18 15:43:08 -0800 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2013-01-20 20:56:18 -0500 |
commit | b3eed73c3b19759b0922a7a57b6068bb69cbd710 (patch) | |
tree | c1d7533d67e65f56ebad4ceb4346f3bcfe4cef74 /src | |
parent | 0f899c2da8b5c1ee305b80e9053447d9663b98b2 (diff) | |
download | external_mesa3d-b3eed73c3b19759b0922a7a57b6068bb69cbd710.zip external_mesa3d-b3eed73c3b19759b0922a7a57b6068bb69cbd710.tar.gz external_mesa3d-b3eed73c3b19759b0922a7a57b6068bb69cbd710.tar.bz2 |
mesa/es2: Allow depth component cube maps in ES2 if the extension is enabled
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/teximage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index b2fb41b..2539d86 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -2020,7 +2020,8 @@ texture_error_check( struct gl_context *ctx, target != GL_TEXTURE_RECTANGLE_ARB && target != GL_PROXY_TEXTURE_RECTANGLE_ARB && !((_mesa_is_cube_face(target) || target == GL_PROXY_TEXTURE_CUBE_MAP) && - (ctx->Version >= 30 || ctx->Extensions.EXT_gpu_shader4)) && + (ctx->Version >= 30 || ctx->Extensions.EXT_gpu_shader4 + || (ctx->API == API_OPENGLES2 && ctx->Extensions.OES_depth_texture_cube_map))) && !((target == GL_TEXTURE_CUBE_MAP_ARRAY || target == GL_PROXY_TEXTURE_CUBE_MAP_ARRAY) && ctx->Extensions.ARB_texture_cube_map_array)) { |