[PATCH 3/5] glx/dri2: fix incorrect == vs =
Ian Romanick
idr at freedesktop.org
Thu Jul 12 10:39:31 PDT 2012
On 07/12/2012 02:12 AM, Dave Airlie wrote:
> glxdri2.c:486: warning: statement with no effect
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> Cc: Ian Romanick <idr at freedesktop.org>
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;
>
More information about the xorg-devel
mailing list