[Mesa-dev] [PATCH 2/6] glsl: fix MSVC int->bool conversion warning
Brian Paul
brianp at vmware.com
Tue Oct 29 21:11:46 CET 2013
---
src/glsl/glsl_types.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h
index fdb1f3a..96eee5e 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;
}
/**
--
1.7.10.4
More information about the mesa-dev
mailing list