diff options
author | marha <marha@users.sourceforge.net> | 2012-09-18 08:20:29 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-09-18 08:20:29 +0200 |
commit | 52213f2cd11c6cc7210cea6896ed464fddfe3fec (patch) | |
tree | 0f4e055fba98483c9f89d5197849d2f408de438b /mesalib/src/mesa/main/texobj.h | |
parent | e3c4aa34268f99562e66b43a7d9efcd16ca072e6 (diff) | |
download | vcxsrv-52213f2cd11c6cc7210cea6896ed464fddfe3fec.tar.gz vcxsrv-52213f2cd11c6cc7210cea6896ed464fddfe3fec.tar.bz2 vcxsrv-52213f2cd11c6cc7210cea6896ed464fddfe3fec.zip |
mesa git update 18 sep 2012
Diffstat (limited to 'mesalib/src/mesa/main/texobj.h')
-rw-r--r-- | mesalib/src/mesa/main/texobj.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mesalib/src/mesa/main/texobj.h b/mesalib/src/mesa/main/texobj.h index a6f1d3a14..f22c58cad 100644 --- a/mesalib/src/mesa/main/texobj.h +++ b/mesalib/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; + } } |