[Mesa-dev] [PATCH] mesa: fix malformed assertion in _image_format_class_to_glenum()

Brian Paul brianp at vmware.com
Tue Mar 8 01:58:27 UTC 2016


---
 src/mesa/main/shaderimage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c
index fa967a2..fd5934f 100644
--- a/src/mesa/main/shaderimage.c
+++ b/src/mesa/main/shaderimage.c
@@ -360,7 +360,7 @@ _image_format_class_to_glenum(enum image_format_class class)
    case IMAGE_FORMAT_CLASS_2_10_10_10:
       return GL_IMAGE_CLASS_10_10_10_2;
    default:
-      assert("Invalid image_format_class");
+      assert(!"Invalid image_format_class");
       return GL_NONE;
    }
 }
-- 
1.9.1



More information about the mesa-dev mailing list