mesa: remove unused _mesa_cpal_compressed_format_type() function
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
30ebc8650c
commit
541158fbb9
|
@ -140,21 +140,6 @@ _mesa_cpal_compressed_size(int level, GLenum internalFormat,
|
|||
return expect_size;
|
||||
}
|
||||
|
||||
void
|
||||
_mesa_cpal_compressed_format_type(GLenum internalFormat, GLenum *format,
|
||||
GLenum *type)
|
||||
{
|
||||
const struct cpal_format_info *info;
|
||||
|
||||
if (internalFormat < GL_PALETTE4_RGB8_OES
|
||||
|| internalFormat > GL_PALETTE8_RGB5_A1_OES) {
|
||||
return;
|
||||
}
|
||||
|
||||
info = &formats[internalFormat - GL_PALETTE4_RGB8_OES];
|
||||
*format = info->format;
|
||||
*type = info->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a call to glCompressedTexImage2D() where internalFormat is a
|
||||
|
|
|
@ -38,8 +38,5 @@ extern unsigned
|
|||
_mesa_cpal_compressed_size(int level, GLenum internalFormat,
|
||||
unsigned width, unsigned height);
|
||||
|
||||
extern void
|
||||
_mesa_cpal_compressed_format_type(GLenum internalFormat, GLenum *format,
|
||||
GLenum *type);
|
||||
|
||||
#endif /* TEXCOMPRESS_CPAL_H */
|
||||
|
|
Loading…
Reference in New Issue