diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-08-01 20:42:45 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-08-01 20:42:45 +0200 |
| commit | fd357aa968e82b0a387926399c5a52eb04010632 (patch) | |
| tree | f6de98d1607646e6edb9ab392ee46b26bba3f0a0 /sokol_gfx.h | |
| parent | 733c7061e8646527935e3285490ec1888b4b0e8d (diff) | |
fix SG_PIXELFORMAT_R32F caps on macos metal
Diffstat (limited to 'sokol_gfx.h')
| -rw-r--r-- | sokol_gfx.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index 7ab30c0d..af31fcf4 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -8109,7 +8109,11 @@ _SOKOL_PRIVATE void _sg_mtl_init_caps(void) { _sg_pixelformat_srm(&_sg.formats[SG_PIXELFORMAT_RG8SI]); _sg_pixelformat_sr(&_sg.formats[SG_PIXELFORMAT_R32UI]); _sg_pixelformat_sr(&_sg.formats[SG_PIXELFORMAT_R32SI]); - _sg_pixelformat_sbrm(&_sg.formats[SG_PIXELFORMAT_R32F]); + #if defined(_SG_TARGET_MACOS) + _sg_pixelformat_all(&_sg.formats[SG_PIXELFORMAT_R32F]); + #else + _sg_pixelformat_sbrm(&_sg.formats[SG_PIXELFORMAT_R32F]); + #endif _sg_pixelformat_all(&_sg.formats[SG_PIXELFORMAT_RG16]); _sg_pixelformat_all(&_sg.formats[SG_PIXELFORMAT_RG16SN]); _sg_pixelformat_srm(&_sg.formats[SG_PIXELFORMAT_RG16UI]); |