mesa: fix malformed assertion in _image_format_class_to_glenum()
authorBrian Paul <brianp@vmware.com>
Tue, 8 Mar 2016 01:57:33 +0000 (18:57 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 8 Mar 2016 15:42:56 +0000 (08:42 -0700)
Reviewed-by: Vinson Lee <vlee@freedesktop.org>
src/mesa/main/shaderimage.c

index fa967a2408ab9554b72f51c3df4feb8b591fe9e6..fd5934f939f52e58a3b462f1836ae6e2ea56c1c5 100644 (file)
@@ -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;
    }
 }