OSDN Git Service

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 fa967a2..fd5934f 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;
    }
 }