aboutsummaryrefslogtreecommitdiff
path: root/sokol_gfx.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-07-06 13:21:14 +0200
committerGitHub <noreply@github.com>2019-07-06 13:21:14 +0200
commitf5b8c02e4276e59b3e1e9643f714f0412677a40b (patch)
tree38f04aa84f48b7adf7eb0e71e653c045f856c6fa /sokol_gfx.h
parent6660fa7cc349159d5e6ca3dac5c57cf52fa12a56 (diff)
new sokol_fetch.h header (#178)
Diffstat (limited to 'sokol_gfx.h')
-rw-r--r--sokol_gfx.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index db21773b..0aa68b10 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -545,7 +545,7 @@ enum {
SG_NUM_SHADER_STAGES = 2,
SG_NUM_INFLIGHT_FRAMES = 2,
SG_MAX_COLOR_ATTACHMENTS = 4,
- SG_MAX_SHADERSTAGE_BUFFERS = 4,
+ SG_MAX_SHADERSTAGE_BUFFERS = 8,
SG_MAX_SHADERSTAGE_IMAGES = 12,
SG_MAX_SHADERSTAGE_UBS = 4,
SG_MAX_UB_MEMBERS = 16,
@@ -8171,9 +8171,8 @@ _SOKOL_PRIVATE void _sg_commit(void) {
/* present, commit and signal semaphore when done */
id<MTLDrawable> cur_drawable = (__bridge id<MTLDrawable>) _sg.mtl.drawable_cb();
[_sg_mtl_cmd_buffer presentDrawable:cur_drawable];
- __block dispatch_semaphore_t sem = _sg_mtl_sem;
[_sg_mtl_cmd_buffer addCompletedHandler:^(id<MTLCommandBuffer> cmd_buffer) {
- dispatch_semaphore_signal(sem);
+ dispatch_semaphore_signal(_sg_mtl_sem);
}];
[_sg_mtl_cmd_buffer commit];