On 07/12/2012 02:12 AM, Dave Airlie wrote:
glxdri2.c:486: warning: statement with no effect

Signed-off-by: Dave Airlie <[email protected]>
Cc: Ian Romanick <[email protected]>

This also needs the 'glx: Fix checking GL version' posted by Bartosz Brachaczek back on 7/5.

---
  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;



_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to