summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index e6a7d2391a7..645a88685cf 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -164,11 +164,9 @@ driCreateNewScreen2(int scrn, int fd,
api = API_OPENGL_COMPAT;
if (_mesa_override_gl_version_contextless(&consts, &api, &version)) {
- if (api == API_OPENGL_CORE) {
- psp->max_gl_core_version = version;
- } else {
+ psp->max_gl_core_version = version;
+ if (api == API_OPENGL_COMPAT)
psp->max_gl_compat_version = version;
- }
}
psp->api_mask = 0;