--- a/src/texture.c Sun May 24 16:48:51 2026 +0200 +++ b/src/texture.c Sun May 24 17:26:24 2026 +0200 @@ -31,7 +31,7 @@ #include "ascension/filesystem.h" #include <assert.h> -#include <GL/glew.h> +#include "glad.h" #include <SDL3_image/SDL_image.h> void asc_texture_bind(const AscTexture *tex, int uniform_location, int unit) { @@ -91,7 +91,7 @@ GL_UNSIGNED_BYTE, surface->pixels); asc_error_catch_gl("Writing texture data"); if (tex->use_mipmaps) { - glGenerateTextureMipmap(tex->tex_id); + glGenerateMipmap(tex->target); asc_error_catch_gl("Generating texture mipmaps"); } }