Skip to content

Commit

Permalink
fix applyUniforms arg type
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 25, 2024
1 parent a19f915 commit 16cfd1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/sokol/c/sokol_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3725,7 +3725,6 @@ static _sgl_matrix_t* _sgl_matrix(_sgl_context_t* ctx) {
return &ctx->matrix_stack[ctx->cur_matrix_mode][ctx->matrix_tos[ctx->cur_matrix_mode]];
}

// return sg_context_desc_t with patched defaults
static sgl_desc_t _sgl_desc_defaults(const sgl_desc_t* desc) {
SOKOL_ASSERT((desc->allocator.alloc_fn && desc->allocator.free_fn) || (!desc->allocator.alloc_fn && !desc->allocator.free_fn));
sgl_desc_t res = *desc;
Expand Down
4 changes: 2 additions & 2 deletions src/sokol/gfx.d
Original file line number Diff line number Diff line change
Expand Up @@ -1454,8 +1454,8 @@ extern(C) void sg_apply_bindings(const Bindings *) @system @nogc nothrow;
void applyBindings(scope ref Bindings bindings) @trusted @nogc nothrow {
sg_apply_bindings(&bindings);
}
extern(C) void sg_apply_uniforms(int, const Range *) @system @nogc nothrow;
void applyUniforms(int ub_slot, scope ref Range data) @trusted @nogc nothrow {
extern(C) void sg_apply_uniforms(uint, const Range *) @system @nogc nothrow;
void applyUniforms(uint ub_slot, scope ref Range data) @trusted @nogc nothrow {
sg_apply_uniforms(ub_slot, &data);
}
extern(C) void sg_draw(uint, uint, uint) @system @nogc nothrow;
Expand Down

0 comments on commit 16cfd1f

Please sign in to comment.