aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-02-27 17:36:22 +0100
committerAndre Weissflog <floooh@gmail.com>2024-02-27 17:36:22 +0100
commitea4c63cf1d4bc7f278db18a30b2dd75890f3a03d (patch)
treec181803b89f00e25559d56057084b0de5a3a7661
parentd3b17072d866c34ede494af6d5e494fe50ea398a (diff)
sokol_gfx.h: fixes for merge from master
-rw-r--r--sokol_gfx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index 01e6f03e..31ccd1eb 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -8694,10 +8694,10 @@ _SOKOL_PRIVATE void _sg_gl_end_pass(void) {
invalidate_atts[att_index++] = (GLenum)(GL_COLOR_ATTACHMENT0 + i);
}
}
- if ((_sg.gl.depth_store_action == SG_STOREACTION_DONTCARE) && (_sg.gl.cur_pass->cmn.ds_att.image_id.id != SG_INVALID_ID)) {
+ if ((_sg.gl.depth_store_action == SG_STOREACTION_DONTCARE) && (_sg.cur_pass.atts->cmn.depth_stencil.image_id.id != SG_INVALID_ID)) {
invalidate_atts[att_index++] = GL_DEPTH_ATTACHMENT;
}
- if ((_sg.gl.stencil_store_action == SG_STOREACTION_DONTCARE) && (_sg.gl.cur_pass->cmn.ds_att.image_id.id != SG_INVALID_ID)) {
+ if ((_sg.gl.stencil_store_action == SG_STOREACTION_DONTCARE) && (_sg.cur_pass.atts->cmn.depth_stencil.image_id.id != SG_INVALID_ID)) {
invalidate_atts[att_index++] = GL_STENCIL_ATTACHMENT;
}
if (att_index > 0) {