Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (texture->resource.format_flags & WINED3DFMT_FLAG_DECOMPRESS)
- {
- struct wined3d_format temp;
- temp.decompress = format->decompress;
- format = wined3d_get_format(gl_info, WINED3DFMT_B8G8R8A8_UNORM, WINED3DUSAGE_TEXTURE);
- f = *format;
- f.conv_byte_count = format->byte_count;
- f.upload = temp.decompress;
- format = &f;
- texture->resource.format_flags &= ~WINED3DFMT_FLAG_BLOCKS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement