diff options
| author | Andre Weissflog <floooh@gmail.com> | 2021-05-11 20:03:12 +0200 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2021-05-11 20:03:12 +0200 |
| commit | 76eff5fd6665087f09222a2c3506fb198f194d3a (patch) | |
| tree | 15969ccbf7ab6c939dcc415ac91a4cd7e9098fb6 | |
| parent | 6286c5328a29afcb3d22c316abb49422adcb0aff (diff) | |
sokol_gfx.h gl: expand _sg_gl_uniform_t.count from uint8_t to uint16_t, fixes #522
| -rw-r--r-- | sokol_gfx.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index acda3dc4..31684b8d 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -3336,7 +3336,7 @@ typedef _sg_gl_image_t _sg_image_t; typedef struct { GLint gl_loc; sg_uniform_type type; - uint8_t count; + uint16_t count; uint16_t offset; } _sg_gl_uniform_t; @@ -6475,7 +6475,7 @@ _SOKOL_PRIVATE sg_resource_state _sg_gl_create_shader(_sg_shader_t* shd, const s } _sg_gl_uniform_t* u = &ub->uniforms[u_index]; u->type = u_desc->type; - u->count = (uint8_t) u_desc->array_count; + u->count = (uint16_t) u_desc->array_count; u->offset = (uint16_t) cur_uniform_offset; cur_uniform_offset += _sg_uniform_size(u->type, u->count); if (u_desc->name) { |