From de4f460e20cf76ece883530ffe3f82a0afc817f3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 3 Jul 2003 02:15:06 +0000 Subject: Simplify extension string handling. --- src/mesa/main/mtypes.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/mtypes.h') diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 59a75da8c8..2c73d98962 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -878,7 +878,7 @@ struct gl_texture_image { GLfloat DepthScale; /* used for mipmap lod computation */ GLvoid *Data; /* Image data, accessed via FetchTexel() */ GLboolean IsClientData; /* Data owned by client? */ - + GLboolean _IsPowerOfTwo; /* Are all dimensions powers of two? */ const struct gl_texture_format *TexFormat; @@ -920,6 +920,7 @@ struct gl_texture_object { GLint _MaxLevel; /* actual max mipmap level (q in the spec) */ GLfloat _MaxLambda; /* = _MaxLevel - BaseLevel (q - b in spec) */ GLboolean GenerateMipmap; /* GL_SGIS_generate_mipmap */ + GLboolean _IsPowerOfTwo; /* Are all image dimensions powers of two? */ struct gl_texture_image *Image[MAX_TEXTURE_LEVELS]; @@ -1449,13 +1450,11 @@ struct gl_constants { /* * List of extensions. */ -struct extension; struct gl_extensions { - char *ext_string; - struct extension *ext_list; /* Flags to quickly test if certain extensions are available. * Not every extension needs to have such a flag, but it's encouraged. */ + GLboolean dummy; /* don't remove this! */ GLboolean ARB_depth_texture; GLboolean ARB_fragment_program; GLboolean ARB_imaging; @@ -1504,6 +1503,7 @@ struct gl_extensions { GLboolean HP_occlusion_test; GLboolean IBM_rasterpos_clip; GLboolean MESA_pack_invert; + GLboolean MESA_packed_depth_stencil; GLboolean MESA_resize_buffers; GLboolean MESA_ycbcr_texture; GLboolean NV_blend_square; @@ -1524,6 +1524,8 @@ struct gl_extensions { GLboolean SGIX_shadow_ambient; /* or GL_ARB_shadow_ambient */ GLboolean TDFX_texture_compression_FXT1; GLboolean APPLE_client_storage; + /* The extension string */ + const GLubyte *String; }; -- cgit v1.2.3