Mesa (master): mesa: dont set GLSLVersion in _mesa_init_constants()
Timothy Arceri
tarceri at kemper.freedesktop.org
Wed May 9 04:30:22 UTC 2018
Module: Mesa
Branch: master
Commit: 2a621acc8d31702a4c7e09d567c8dbc1c9231cd8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a621acc8d31702a4c7e09d567c8dbc1c9231cd8
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Tue May 8 09:19:04 2018 +1000
mesa: dont set GLSLVersion in _mesa_init_constants()
Just leave it as 0 and let the drivers set it (as they already do)
to avoid redundantly initialising it.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/main/context.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 9a4bf8d394..9bd4661bd8 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -639,7 +639,6 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api)
consts->MaxGeometryTotalOutputComponents = MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS;
/* Shading language version */
- consts->GLSLVersion = 120;
_mesa_override_glsl_version(consts);
#ifdef DEBUG
More information about the mesa-commit
mailing list