src/sprite.c

changeset 162
d3598c834f9b
parent 161
4c8b9c6d241f
child 163
3628cc3c0483
--- a/src/sprite.c	Sat Jun 21 22:10:54 2025 +0200
+++ b/src/sprite.c	Sun Jun 22 11:15:53 2025 +0200
@@ -53,7 +53,7 @@
         return NULL;
     }
     AscSpriteShader *shader = asc_shader_create(codes, sizeof(*shader));
-    if (asc_has_error()) {
+    if (shader == NULL) {
         asc_shader_free_codes(codes);
         return NULL;
     }

mercurial