src/glcontext.c

changeset 89
e1f682a8a145
parent 88
6234b7ea48f3
child 90
aa8e7a38905c
--- a/src/glcontext.c	Sun Apr 20 15:41:16 2025 +0200
+++ b/src/glcontext.c	Mon Apr 21 17:27:33 2025 +0200
@@ -75,8 +75,8 @@
 }
 
 static int asc_texture_initialize_predefined(AscGLContext *ctx) {
-    asc_texture_init_rectangle(&ctx->textures.empty_1x1_rect);
-    asc_texture_init_2d(&ctx->textures.empty_1x1_2d);
+    asc_texture_init_rectangle(&ctx->textures.empty_1x1_rect, 1);
+    asc_texture_init_2d(&ctx->textures.empty_1x1_2d, 1);
 
     // Create a 1x1 surface with 32-bit RGBA format
     SDL_Surface* white1x1 = SDL_CreateRGBSurface(
@@ -98,8 +98,8 @@
 }
 
 static void asc_texture_destroy_predefined(AscGLContext *ctx) {
-    asc_texture_destroy(&ctx->textures.empty_1x1_2d);
-    asc_texture_destroy(&ctx->textures.empty_1x1_rect);
+    asc_texture_destroy(&ctx->textures.empty_1x1_2d, 1);
+    asc_texture_destroy(&ctx->textures.empty_1x1_rect, 1);
 }
 
 bool asc_gl_context_initialize(

mercurial