src/text.c

changeset 40
6c438be1a1fd
parent 38
6e5629ea4c5c
child 41
df81d493716e
--- a/src/text.c	Thu Mar 21 20:34:33 2024 +0100
+++ b/src/text.c	Thu Mar 21 20:48:18 2024 +0100
@@ -38,13 +38,13 @@
     }
 
     // Upload model matrix
-    glUniformMatrix4fv(ASC_SHADER_FONT.base.model, 1,
+    glUniformMatrix4fv(ASC_SHADER_SPRITE.base.model, 1,
                        GL_FALSE, node->base.final_transform);
 
     // Upload surface
     glActiveTexture(GL_TEXTURE0);
     glBindTexture(GL_TEXTURE_RECTANGLE, node->tex_id);
-    glUniform1i(ASC_SHADER_FONT.surface, 0);
+    glUniform1i(ASC_SHADER_SPRITE.surface, 0);
 
     // Draw mesh
     asc_primitives_draw_plane();

mercurial