[PATCH] WineD3D: Make the srgb write flag bigger=0A=

Stefan Doesinger stefan at codeweavers.com
Tue Sep 2 11:11:29 CDT 2008

Apparently gcc pads the structure size to DWORD alignment, which=0A=
leaves 3 padding bytes which trigger differences in the memset.=0A=
This fixes memory "leaks" in the fragment pipeline replacement=0A=
without needing a memset=0A=
 dlls/wined3d/wined3d_private.h |    2 +-=0A=
 1 files changed, 1 insertions(+), 1 deletions(-)=0A=
diff --git a/dlls/wined3d/wined3d_private.h =
index ebe0f7f..7205342 100644=0A=
--- a/dlls/wined3d/wined3d_private.h=0A=
+++ b/dlls/wined3d/wined3d_private.h=0A=
@@ -785,7 +785,7 @@ struct ffp_settings {=0A=
     } fog;=0A=
-    unsigned char sRGB_write;=0A=
+    unsigned int sRGB_write;=0A=
 struct ffp_desc=0A=
-- =0A=


More information about the wine-patches mailing list