aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-10-24 15:57:08 +0100
committerEmil Velikov <[email protected]>2017-11-16 14:07:14 +0000
commita3f82876f4471b88158074766c6115e15642d734 (patch)
tree5e7a7535213058af3dc483b41b9bc1764b49e50d /src/mesa/main/extensions.c
parent444d9e4b081ab18352fc30a3c90829536ddd49fb (diff)
mesa: reuse set_extension() for _mesa_extension_override_disables
We already use it for _mesa_extension_override_enables. Improve consistency and use it for both extension lists. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r--src/mesa/main/extensions.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 351ed1c4dd4..2468e19bf99 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -287,12 +287,11 @@ _mesa_one_time_init_extension_overrides(void)
i = name_to_index(ext);
offset = set_extension(&_mesa_extension_override_enables, i, enable);
- if (offset != 0 && (offset != o(dummy_true) || enable != GL_FALSE)) {
- ((GLboolean *) &_mesa_extension_override_disables)[offset] = !enable;
+ offset = set_extension(&_mesa_extension_override_disables, i, !enable);
+ if (offset != 0)
recognized = true;
- } else {
+ else
recognized = false;
- }
if (!recognized && enable) {
strcat(extra_extensions, ext);