projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0783399
)
mesa: dont set GLSLVersion in _mesa_init_constants()
author
Timothy Arceri
<tarceri@itsqueeze.com>
Mon, 7 May 2018 23:19:04 +0000
(09:19 +1000)
committer
Timothy Arceri
<tarceri@itsqueeze.com>
Wed, 9 May 2018 04:24:22 +0000
(14:24 +1000)
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@amd.com>
src/mesa/main/context.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/context.c
b/src/mesa/main/context.c
index 9a4bf8d3942f0bdae16960628e638dfbd9821541..9bd4661bd8642901d3fd349cb6495314ffc0392b 100644
(file)
--- 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