aboutsummaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2025-10-12 12:57:44 +0200
committerAndre Weissflog <floooh@gmail.com>2025-10-12 12:57:44 +0200
commit95995c55d0301b5b6fe0e25bdbad8df3ffb95f8a (patch)
tree04fe4ff77a8369fca3a6c8086ad34eb149198569 /sokol_app.h
parent98d0fc95f52c21a916b90935845d9bde2b2e6d39 (diff)
sokol_glue.h: port to new sapp env/swapchain/desc api
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sokol_app.h b/sokol_app.h
index b608246f..18f31729 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -1821,7 +1821,7 @@ typedef enum sapp_log_item {
typedef enum sapp_pixel_format {
_SAPP_PIXELFORMAT_DEFAULT,
SAPP_PIXELFORMAT_RGBA8,
- SAPP_PIXELFORMAT_SRGBA8,
+ SAPP_PIXELFORMAT_SRGB8A8,
SAPP_PIXELFORMAT_BGRA8,
SAPP_PIXELFORMAT_SBGRA8,
SAPP_PIXELFORMAT_DEPTH,
@@ -13418,9 +13418,9 @@ SOKOL_API_IMPL sapp_swapchain sapp_swapchain_next(void) {
_sapp_clear(&res, sizeof(res));
res.width =
res.height =
- res.sample_count = _sapp_color_format();
- res.color_format = _SAPP_PIXELFORMAT_DEPTH_STENCIL;
- res.depth_format = _sapp.sample_count;
+ res.color_format = sapp_color_format();
+ res.depth_format = sapp_depth_format();
+ res.sample_count = sapp_color_format();
#if defined(SOKOL_METAL)
#if defined(_SAPP_MACOS)
res.metal.current_drawable = (__bridge const void*) [_sapp.macos.view currentDrawable];