llvmpipe: Fix typo in assert.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Apr 2010 14:11:57 +0000 (15:11 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 22 Apr 2010 14:11:57 +0000 (15:11 +0100)
src/gallium/drivers/llvmpipe/lp_state_fs.c

index 59d5a440c03f001aa1ffb7c6873e5cc5c4f5165a..551c3757bbbe3a5061a2569dabfb6dc48c96f762 100644 (file)
@@ -1112,8 +1112,8 @@ make_variant_key(struct llvmpipe_context *lp,
       unsigned chan;
 
       format_desc = util_format_description(lp->framebuffer.cbufs[i]->format);
-      assert(format_desc->layout == UTIL_FORMAT_COLORSPACE_RGB ||
-             format_desc->layout == UTIL_FORMAT_COLORSPACE_SRGB);
+      assert(format_desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB ||
+             format_desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB);
 
       key->blend.rt[i].colormask = lp->blend->rt[i].colormask;