Henri Verbeet : wined3d: Initialize format block info with sane values for uncompressed formats.
Alexandre Julliard
julliard at winehq.org
Tue Jun 21 12:25:39 CDT 2011
Module: wine
Branch: master
Commit: 17eb3e2c74309c52028948e73639ab38e93e7690
URL: http://source.winehq.org/git/wine.git/?a=commit;h=17eb3e2c74309c52028948e73639ab38e93e7690
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Jun 20 23:21:09 2011 +0200
wined3d: Initialize format block info with sane values for uncompressed formats.
---
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)
More information about the wine-cvs
mailing list