mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-15 14:18:04 +02:00
mesa/main: remove unused array
The values here are only ever set to GL_TRUE, and never ever changed, so
let's just rip it out.
Fixes: 37190ad932 ("mesa: drop texformat code this isn't used.")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38656>
This commit is contained in:
parent
b92719f926
commit
4916cee439
3 changed files with 1 additions and 10 deletions
|
|
@ -1004,13 +1004,6 @@ _mesa_initialize_context(struct gl_context *ctx,
|
|||
|
||||
_mesa_reset_vertex_processing_mode(ctx);
|
||||
|
||||
/* Mesa core handles all the formats that mesa core knows about.
|
||||
* Drivers will want to override this list with just the formats
|
||||
* they can handle.
|
||||
*/
|
||||
memset(&ctx->TextureFormatSupported, GL_TRUE,
|
||||
sizeof(ctx->TextureFormatSupported));
|
||||
|
||||
switch (ctx->API) {
|
||||
case API_OPENGL_COMPAT:
|
||||
case API_OPENGL_CORE:
|
||||
|
|
|
|||
|
|
@ -4176,7 +4176,7 @@ _mesa_tex_format_from_format_and_type(const struct gl_context *ctx,
|
|||
if (_mesa_format_is_mesa_array_format(format))
|
||||
format = _mesa_format_from_array_format(format);
|
||||
|
||||
if (format == MESA_FORMAT_NONE || !ctx->TextureFormatSupported[format])
|
||||
if (format == MESA_FORMAT_NONE)
|
||||
return MESA_FORMAT_NONE;
|
||||
|
||||
return format;
|
||||
|
|
|
|||
|
|
@ -3582,8 +3582,6 @@ struct gl_context
|
|||
*/
|
||||
GLboolean HasConfig;
|
||||
|
||||
GLboolean TextureFormatSupported[MESA_FORMAT_COUNT];
|
||||
|
||||
GLboolean RasterDiscard; /**< GL_RASTERIZER_DISCARD */
|
||||
GLboolean IntelConservativeRasterization; /**< GL_CONSERVATIVE_RASTERIZATION_INTEL */
|
||||
GLboolean ConservativeRasterization; /**< GL_CONSERVATIVE_RASTERIZATION_NV */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue