summaryrefslogtreecommitdiff
path: root/glx/glxdri2.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2012-07-12 19:04:13 +1000
committerDave Airlie <airlied@gmail.com>2012-07-13 11:20:28 +1000
commitc62205adcd48d497450655d0136f8ca5bd5cbae7 (patch)
treea07c113aefa87c83e668c2e42c81ab7104eee873 /glx/glxdri2.c
parentdefca4c192bd7f4af2b273c7cb1fe8665888772a (diff)
glx/dri2: fix incorrect == vs =
glxdri2.c:486: warning: statement with no effect Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'glx/glxdri2.c')
-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;