diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-10-06 16:12:39 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-10-06 16:12:39 +0200 |
| commit | c976c723c6686e892f2d8a4c4c444612e01b68a0 (patch) | |
| tree | 792b656a3a00a9e8106c669bdf20ce51ec2a6c43 | |
| parent | 7d2b134d4a940c12e32e7984fbb61ab9368d6152 (diff) | |
sokol_app.h macos: add a warning comment to _sapp_macos_frame()
| -rw-r--r-- | sokol_app.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h index 422fb18b..800cece1 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -4712,6 +4712,10 @@ _SOKOL_PRIVATE void _sapp_macos_set_icon(const sapp_icon_desc* icon_desc, int nu } _SOKOL_PRIVATE void _sapp_macos_frame(void) { + // NOTE: DO NOT call _sapp_macos_update_dimensions() function from with the + // frame callback when called from MTKView's drawRect function. + // This will trigger a chicken-egg situation that triggers a + // Metal validation layer error about different render target sizes. _sapp_timing_measure(&_sapp.timing); #if defined(_SAPP_ANY_GL) glGetIntegerv(GL_FRAMEBUFFER_BINDING, (GLint*)&_sapp.gl.framebuffer); |