d3d1x: fix uninitialized const color union black
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 24 Sep 2011 13:37:32 +0000 (15:37 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 28 Sep 2011 14:28:58 +0000 (16:28 +0200)
Broken by 6dd284f7c8fac22f64c13fdf9909094f5ec59086.

src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp

index e3329e4d5d3236ee0ec3f151b0c0d2830eeb05dc..32817ecb29f53b23d6ffb9865c52990f4a59e779 100644 (file)
@@ -1162,7 +1162,7 @@ struct GalliumDXGISwapChain : public GalliumDXGIObject<IDXGISwapChain, GalliumDX
                if(1)
                {
                        unsigned blit_x, blit_y, blit_w, blit_h;
-                       static const union pipe_color_union black;
+                       static const union pipe_color_union black = { { 0, 0, 0, 0 } };
 
                        if(!formats_compatible || src->width0 != dst_w || src->height0 != dst_h) {
                                struct pipe_surface templat;