From: Brian Paul Date: Mon, 17 Sep 2012 01:14:56 +0000 (-0600) Subject: mesa: handle GL_PROXY_TEXTURE_CUBE_MAP in _mesa_num_tex_faces() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90ca4c0c620ef5ca71d1a9c2e28ba65965b16d34;p=mesa.git mesa: handle GL_PROXY_TEXTURE_CUBE_MAP in _mesa_num_tex_faces() --- 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; + } }