src/texture.c

changeset 149
560772519ff9
parent 135
062703d3f5cc
--- a/src/texture.c	Fri Jun 13 18:09:49 2025 +0200
+++ b/src/texture.c	Sat Jun 14 11:40:40 2025 +0200
@@ -34,7 +34,7 @@
 #include <GL/glew.h>
 #include <SDL2/SDL_image.h>
 
-void asc_texture_bind(AscTexture const *tex, int uniform_location, int unit) {
+void asc_texture_bind(const AscTexture *tex, int uniform_location, int unit) {
     glActiveTexture(GL_TEXTURE0 + unit);
     GLenum error = glGetError();
     if (error == GL_INVALID_ENUM) {
@@ -47,7 +47,7 @@
     asc_error_catch_all_gl();
 }
 
-void asc_texture_from_surface(AscTexture *tex, SDL_Surface const *surface) {
+void asc_texture_from_surface(AscTexture *tex, const SDL_Surface *surface) {
     if (tex->tex_id == 0) {
         asc_error("Tried to use uninitialized texture (%"PRIxPTR ").", (uintptr_t) tex);
         return;

mercurial