llvmpipe: Fix assert.
authorVinson Lee <vlee@vmware.com>
Tue, 29 Dec 2009 02:07:09 +0000 (18:07 -0800)
committerVinson Lee <vlee@vmware.com>
Tue, 29 Dec 2009 02:07:09 +0000 (18:07 -0800)
src/gallium/drivers/llvmpipe/lp_bld_depth.c

index 98ec1cb1b9dca428118830ae8e8f70173a4d9648..d438c0e63d7d43695775d89ed9ca137c8cf4d9db 100644 (file)
@@ -90,7 +90,7 @@ lp_depth_type(const struct util_format_description *format_desc,
 
    if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_FLOAT) {
       type.floating = TRUE;
-      assert(swizzle = 0);
+      assert(swizzle == 0);
       assert(format_desc->channel[swizzle].size == format_desc->block.bits);
    }
    else if(format_desc->channel[swizzle].type == UTIL_FORMAT_TYPE_UNSIGNED) {