mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
only allow intformat==GL_COLOR_INDEX if EXT_paletted_texture is supported
This commit is contained in:
parent
8c2a1f0e4d
commit
e716549618
1 changed files with 5 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: teximage.c,v 1.120 2002/10/17 22:26:06 kschultz Exp $ */
|
||||
/* $Id: teximage.c,v 1.121 2002/10/18 13:24:08 brianp Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -212,7 +212,10 @@ _mesa_base_tex_format( GLcontext *ctx, GLint format )
|
|||
case GL_COLOR_INDEX8_EXT:
|
||||
case GL_COLOR_INDEX12_EXT:
|
||||
case GL_COLOR_INDEX16_EXT:
|
||||
return GL_COLOR_INDEX;
|
||||
if (ctx->Extensions.EXT_paletted_texture)
|
||||
return GL_COLOR_INDEX;
|
||||
else
|
||||
return -1;
|
||||
case GL_DEPTH_COMPONENT:
|
||||
case GL_DEPTH_COMPONENT16_SGIX:
|
||||
case GL_DEPTH_COMPONENT24_SGIX:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue