--- a/src/text.c Thu Mar 21 23:01:09 2024 +0100 +++ b/src/text.c Tue Mar 26 20:37:21 2024 +0100 @@ -37,17 +37,20 @@ return; } + // Obtain shader + AscShaderSprite *shader = &asc_context.active_window->glctx.shader.sprite; + // Upload model matrix - glUniformMatrix4fv(ASC_SHADER_SPRITE.base.model, 1, + glUniformMatrix4fv(shader->base.model, 1, GL_FALSE, node->base.final_transform); // Upload surface glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_RECTANGLE, node->tex_id); - glUniform1i(ASC_SHADER_SPRITE.surface, 0); + glUniform1i(shader->surface, 0); // Apply depth - glUniform1f(ASC_SHADER_SPRITE.depth, (float)(node->base.depth)); + glUniform1f(shader->depth, (float)(node->base.depth)); // Draw mesh asc_primitives_draw_plane();