[PATCH 1/5] wined3d: Initialize format block info with sane values for uncompressed formats.
Henri Verbeet
hverbeet at codeweavers.com
Mon Jun 20 16:21:09 CDT 2011
---
dlls/wined3d/utils.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index f86a047..fe767ea 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -923,6 +923,9 @@ static BOOL init_format_base_info(struct wined3d_gl_info *gl_info)
format->byte_count = formats[i].bpp;
format->depth_size = formats[i].depthSize;
format->stencil_size = formats[i].stencilSize;
+ format->block_width = 1;
+ format->block_height = 1;
+ format->block_byte_count = formats[i].bpp;
}
for (i = 0; i < (sizeof(format_base_flags) / sizeof(*format_base_flags)); ++i)
--
1.7.3.4
More information about the wine-patches
mailing list