Commit 17eb3e2c authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Initialize format block info with sane values for uncompressed formats.

parent de1d35ea
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment