Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revisit compressed texture support in sokol_gfx.h (#569)
- tighter validation checks on texture creation: - content data validation now also happens in ```sg_make_image()``` (previously only in ```sg_update_image()```) - validate that compressed textures are immutable - separate "no data" validation checks for immutable vs dynamic/stream textures - provided data size for creating or updating textures must match the expected surface sizez exactly - fix PVRTC row and surface pitch computation according to the GL PVRTC extension spec - better adhere to Metal documentation for the ```MTLTexture.replaceRegion``` parameters (when bytesPerImage is expected to be zero or not)
- Loading branch information