diff options
author | Ian Romanick <[email protected]> | 2013-11-23 12:13:50 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-12-04 17:22:42 -0800 |
commit | 7144b768727c106ca6e38e29aacc558036ffe0b6 (patch) | |
tree | 447a90c760a69b635ec40dce1c007b31073eb406 /src/mesa/main | |
parent | 01bbebce4d7e69867735115890b359c67972e654 (diff) |
mesa: Add missing API check for GL_TEXTURE_3D
There are no 3D textures in OpenGL ES 1.x.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index c110f504469..4c3d4687027 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1179,7 +1179,7 @@ target_enum_to_index(struct gl_context *ctx, GLenum target) case GL_TEXTURE_2D: return TEXTURE_2D_INDEX; case GL_TEXTURE_3D: - return TEXTURE_3D_INDEX; + return ctx->API != API_OPENGLES ? TEXTURE_3D_INDEX : -1; case GL_TEXTURE_CUBE_MAP_ARB: return ctx->Extensions.ARB_texture_cube_map ? TEXTURE_CUBE_INDEX : -1; |