src/text.c

changeset 64
f18dc427f86f
parent 59
764fbb013252
child 65
9c44c55d327a
equal deleted inserted replaced
63:e3cacdd636e4 64:f18dc427f86f
34 34
35 #include <GL/glew.h> 35 #include <GL/glew.h>
36 36
37 static void asc_text_draw(AscText const *node) { 37 static void asc_text_draw(AscText const *node) {
38 // Obtain shader 38 // Obtain shader
39 AscShaderSprite *shader = &asc_context.active_window->glctx.shader.sprite; 39 AscShaderSprite *shader = &asc_window_active->glctx.shader.sprite;
40 40
41 // Upload model matrix 41 // Upload model matrix
42 glUniformMatrix4fv(shader->base.model, 1, 42 glUniformMatrix4fv(shader->base.model, 1,
43 GL_FALSE, node->base.world_transform); 43 GL_FALSE, node->base.world_transform);
44 44

mercurial