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>
This commit is contained in:
parent
defca4c192
commit
c62205adcd
|
@ -487,7 +487,7 @@ dri2_convert_glx_attribs(__GLXDRIscreen *screen, unsigned num_attribs,
|
||||||
*/
|
*/
|
||||||
if (*api == __DRI_API_OPENGL_CORE
|
if (*api == __DRI_API_OPENGL_CORE
|
||||||
&& (*major_ver < 3 || (*major_ver < 3 && *minor_ver < 2))) {
|
&& (*major_ver < 3 || (*major_ver < 3 && *minor_ver < 2))) {
|
||||||
*api == __DRI_API_OPENGL;
|
*api = __DRI_API_OPENGL;
|
||||||
}
|
}
|
||||||
|
|
||||||
*error = Success;
|
*error = Success;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user