From: Brian Paul Date: Tue, 29 Oct 2013 20:09:46 +0000 (-0600) Subject: glsl: fix MSVC int->bool conversion warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4d4ec9ddf3ee9b5963907c33c267cfd778f332c;p=mesa.git glsl: fix MSVC int->bool conversion warning --- diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index fdb1f3a6efb..96eee5e64eb 100644 --- a/src/glsl/glsl_types.h +++ b/src/glsl/glsl_types.h @@ -459,7 +459,7 @@ struct glsl_type { */ bool contains_atomic() const { - return atomic_size(); + return atomic_size() > 0; } /**