--- a/src/glcontext.c Sat Mar 01 22:55:30 2025 +0100 +++ b/src/glcontext.c Tue Mar 18 22:43:31 2025 +0100 @@ -48,12 +48,11 @@ cx_strfree(&buf); } +#include "shader_codes.h" + static void asc_shader_initialize_predefined(AscGLContext *ctx) { AscShaderSprite *sprite = &ctx->shader.sprite; - sprite->program = asc_shader_easy_compile_and_link( - "shader/sprite_vtx.glsl", - "shader/sprite_frag.glsl" - ); + sprite->program = asc_shader_program_create(asc_shader_codes_sprite); sprite->depth = glGetUniformLocation(sprite->program.id, "depth"); sprite->tex = glGetUniformLocation(sprite->program.id, "texture"); }