diff options
| author | datalus <email@d.atal.us> | 2020-02-27 14:20:22 -0600 |
|---|---|---|
| committer | datalus <email@d.atal.us> | 2020-02-27 14:20:22 -0600 |
| commit | 8003e95a1a0a85f4c5dd630a1786e7c13d84ff5e (patch) | |
| tree | 079ebffac4fd3f8882eef7573abd66587434644a | |
| parent | 9ac75b766a347981b35ab04fc930a85551d69536 (diff) | |
fixing gles2 assertion on shader struct validation
| -rw-r--r-- | sokol_gfx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h index fd2c3e97..2f881325 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -10450,7 +10450,7 @@ _SOKOL_PRIVATE bool _sg_validate_pipeline_desc(const sg_pipeline_desc* desc) { SOKOL_ASSERT(a_desc->buffer_index < SG_MAX_SHADERSTAGE_BUFFERS); #if defined(SOKOL_GLES2) /* on GLES2, vertex attribute names must be provided */ - SOKOL_VALIDATE(!_sg_strempty(&shd->attrs[attr_index].name), _SG_VALIDATE_PIPELINEDESC_ATTR_NAME); + SOKOL_VALIDATE(!_sg_strempty(&shd->gl.attrs[attr_index].name), _SG_VALIDATE_PIPELINEDESC_ATTR_NAME); #elif defined(SOKOL_D3D11) /* on D3D11, semantic names (and semantic indices) must be provided */ SOKOL_VALIDATE(!_sg_strempty(&shd->d3d11.attrs[attr_index].sem_name), _SG_VALIDATE_PIPELINEDESC_ATTR_SEMANTICS); |