Removed warning in cube demo.
authorFslNopper <Norbert.Nopper@freescale.com>
Wed, 6 May 2015 19:42:01 +0000 (21:42 +0200)
committerFslNopper <Norbert.Nopper@freescale.com>
Wed, 6 May 2015 19:42:01 +0000 (21:42 +0200)
demos/cube.c

index e9ea59230afb8b8339d7cada3d6cac7bdf9f008b..d879800ee0dfb673c25c8108127138df146a46dc 100644 (file)
@@ -1015,7 +1015,7 @@ static void demo_prepare_textures(struct demo *demo)
 
     for (i = 0; i < DEMO_TEXTURE_COUNT; i++) {
 
-        if (props.linearTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT && !demo->use_staging_buffer) {
+        if ((props.linearTilingFeatures & VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT) && !demo->use_staging_buffer) {
             /* Device can texture using linear textures */
             demo_prepare_texture_image(demo, tex_files[i], &demo->textures[i],
                                        VK_IMAGE_TILING_LINEAR, VK_IMAGE_USAGE_SAMPLED_BIT, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT);