summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
Diffstat (limited to 'glx')
-rw-r--r--glx/glxdri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index f168d6fb7..599d0ef08 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -487,7 +487,7 @@ dri2_convert_glx_attribs(__GLXDRIscreen *screen, unsigned num_attribs,
*/
if (*api == __DRI_API_OPENGL_CORE
&& (*major_ver < 3 || (*major_ver < 3 && *minor_ver < 2))) {
- *api == __DRI_API_OPENGL;
+ *api = __DRI_API_OPENGL;
}
*error = Success;