diff src/libmlk-core/core/texture.c @ 423:63ebfa352ae1

core: use err.h in font
author David Demelier <markand@malikania.fr>
date Sat, 15 Oct 2022 14:00:38 +0200
parents 3edda1ce314c
children 1645433e008d
line wrap: on
line diff
--- a/src/libmlk-core/core/texture.c	Sat Oct 15 13:48:40 2022 +0200
+++ b/src/libmlk-core/core/texture.c	Sat Oct 15 14:00:38 2022 +0200
@@ -166,7 +166,7 @@
 
 	if (!(tex->handle = SDL_CreateTextureFromSurface(RENDERER(), surface))) {
 		tex->w = tex->h = 0;
-		return errorf("%s", SDL_GetError());
+		return ERR_INTERNAL;
 	}
 
 	tex->w = surface->w;