src/glcontext.c

changeset 50
d8d2e4817db1
parent 44
b3da4096c607
child 72
84472fb3adbd
--- a/src/glcontext.c	Mon Apr 01 19:44:00 2024 +0200
+++ b/src/glcontext.c	Tue Apr 09 21:18:52 2024 +0200
@@ -51,8 +51,8 @@
 static void asc_shader_initialize_predefined(AscGLContext *ctx) {
     AscShaderSprite *sprite = &ctx->shader.sprite;
     sprite->base = asc_shader_easy_compile_and_link("shader/sprite_vtx.glsl", "shader/sprite_frag.glsl");
-    sprite->surface = glGetUniformLocation(sprite->base.id, "surface");
     sprite->depth = glGetUniformLocation(sprite->base.id, "depth");
+    sprite->tex = glGetUniformLocation(sprite->base.id, "texture");
 }
 
 static void asc_shader_destroy_predefined(AscGLContext *ctx) {

mercurial