diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-08-17 16:32:55 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-08-17 16:32:55 +0200 |
| commit | d7d5a7cefb2195e26a5909373dfe519d14e9d9a6 (patch) | |
| tree | 8ab3890dd8ef5bab622874d5c0c624e728ce32c2 /sokol_gfx.h | |
| parent | 13ee2827e3f9cf69b0a5dc2676f4c600ff8e747e (diff) | |
fix backend and pixelformats caps for dummy backend
Diffstat (limited to 'sokol_gfx.h')
| -rw-r--r-- | sokol_gfx.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index 6ff72ae2..85067b5b 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -3436,6 +3436,16 @@ _SOKOL_PRIVATE void _sg_resolve_default_pass_action(const sg_pass_action* from, _SOKOL_PRIVATE void _sg_setup_backend(const sg_desc* desc) { SOKOL_ASSERT(desc); _SOKOL_UNUSED(desc); + _sg.backend = SG_BACKEND_DUMMY; + for (int i = SG_PIXELFORMAT_R8; i < SG_PIXELFORMAT_BC1_RGBA; i++) { + _sg.formats[i].sample = true; + _sg.formats[i].filter = true; + _sg.formats[i].render = true; + _sg.formats[i].blend = true; + _sg.formats[i].msaa = true; + } + _sg.formats[SG_PIXELFORMAT_DEPTH].depth = true; + _sg.formats[SG_PIXELFORMAT_DEPTH_STENCIL].depth = true; } _SOKOL_PRIVATE void _sg_discard_backend(void) { |