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 |