[PATCH 3/5] glx/dri2: fix incorrect == vs =
Dave Airlie
airlied at gmail.com
Thu Jul 12 02:12:49 PDT 2012
glxdri2.c:486: warning: statement with no effect
Signed-off-by: Dave Airlie <airlied at redhat.com>
Cc: Ian Romanick <idr at freedesktop.org>
---
glx/glxdri2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 6b389ab..a35e39c 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -484,7 +484,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;
--
1.7.10.4
More information about the xorg-devel
mailing list