Mesa (master): d3d1x: fix uninitialized const color union black

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Wed Sep 28 14:34:02 UTC 2011


Module: Mesa
Branch: master
Commit: 5def3b7be142cfc6bbb1534bd0557c5f324de8c0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5def3b7be142cfc6bbb1534bd0557c5f324de8c0

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Sat Sep 24 15:37:32 2011 +0200

d3d1x: fix uninitialized const color union black

Broken by 6dd284f7c8fac22f64c13fdf9909094f5ec59086.

---

 .../state_trackers/d3d1x/dxgi/src/dxgi_native.cpp  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
index e3329e4..32817ec 100644
--- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
+++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
@@ -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;




More information about the mesa-commit mailing list