Advertisement
Conmanx360

Untitled

Jul 15th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. if (texture->resource.format_flags & WINED3DFMT_FLAG_DECOMPRESS)
  2. {
  3. struct wined3d_format temp;
  4.  
  5. temp.decompress = format->decompress;
  6. format = wined3d_get_format(gl_info, WINED3DFMT_B8G8R8A8_UNORM, WINED3DUSAGE_TEXTURE);
  7. f = *format;
  8. f.conv_byte_count = format->byte_count;
  9. f.upload = temp.decompress;
  10. format = &f;
  11. texture->resource.format_flags &= ~WINED3DFMT_FLAG_BLOCKS;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement