summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texobj.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-09-16 19:14:56 -0600
committerBrian Paul <[email protected]>2012-09-17 19:49:27 -0600
commit90ca4c0c620ef5ca71d1a9c2e28ba65965b16d34 (patch)
tree5cb838f0b7829560f4278e92c4b632d034e0d1c0 /src/mesa/main/texobj.h
parentdf73be910506e466940db0c56aa7a1c0452d6e58 (diff)
mesa: handle GL_PROXY_TEXTURE_CUBE_MAP in _mesa_num_tex_faces()
Diffstat (limited to 'src/mesa/main/texobj.h')
-rw-r--r--src/mesa/main/texobj.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h
index a6f1d3a14ff..f22c58cade4 100644
--- a/src/mesa/main/texobj.h
+++ b/src/mesa/main/texobj.h
@@ -85,7 +85,13 @@ _mesa_reference_texobj(struct gl_texture_object **ptr,
static inline GLuint
_mesa_num_tex_faces(GLenum target)
{
- return target == GL_TEXTURE_CUBE_MAP ? 6 : 1;
+ switch (target) {
+ case GL_TEXTURE_CUBE_MAP:
+ case GL_PROXY_TEXTURE_CUBE_MAP:
+ return 6;
+ default:
+ return 1;
+ }
}