glxdri2.c:486: warning: statement with no effect
Signed-off-by: Dave Airlie <[email protected]>
Cc: Ian Romanick <[email protected]>
---
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
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel