mesa/formats: Remove IndexBits
Mesa hasn't supported color-indexed textures for some time. This is 0 for all texture formats, so we don't need to store it. Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -59,7 +59,6 @@ struct gl_format_info
|
||||
GLubyte AlphaBits;
|
||||
GLubyte LuminanceBits;
|
||||
GLubyte IntensityBits;
|
||||
GLubyte IndexBits;
|
||||
GLubyte DepthBits;
|
||||
GLubyte StencilBits;
|
||||
|
||||
@@ -145,7 +144,7 @@ _mesa_get_format_bits(mesa_format format, GLenum pname)
|
||||
case GL_TEXTURE_LUMINANCE_SIZE:
|
||||
return info->LuminanceBits;
|
||||
case GL_INDEX_BITS:
|
||||
return info->IndexBits;
|
||||
return 0;
|
||||
case GL_DEPTH_BITS:
|
||||
case GL_TEXTURE_DEPTH_SIZE_ARB:
|
||||
case GL_RENDERBUFFER_DEPTH_SIZE_EXT:
|
||||
|
Reference in New Issue
Block a user