st/vega: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Sat, 4 Dec 2010 08:53:44 +0000 (00:53 -0800)
committerVinson Lee <vlee@vmware.com>
Sat, 4 Dec 2010 08:53:44 +0000 (00:53 -0800)
Fixes this GCC warning.
api_filters.c: In function 'execute_filter':
api_filters.c:184: warning: 'tex_wrap' may be used uninitialized in this function

src/gallium/state_trackers/vega/api_filters.c

index 95f900f4a93e96d9d370fb8f746b489bf3a502b2..724e38241b52232a49459d92dd5268683a3eeaa4 100644 (file)
@@ -207,6 +207,7 @@ static void execute_filter(struct vg_context *ctx,
       break;
    default:
       debug_assert(!"Unknown tiling mode");
+      tex_wrap = 0;
       break;
    }