diff src/libmlk-core/core/texture.c @ 430:1645433e008d

core: rename ERR_INTERNAL to ERR_SDL
author David Demelier <markand@malikania.fr>
date Sat, 15 Oct 2022 17:18:45 +0200
parents 63ebfa352ae1
children
line wrap: on
line diff
--- a/src/libmlk-core/core/texture.c	Sat Oct 15 15:56:09 2022 +0200
+++ b/src/libmlk-core/core/texture.c	Sat Oct 15 17:18:45 2022 +0200
@@ -39,7 +39,7 @@
 
 	if (!tex->handle) {
 		tex->w = tex->h = 0;
-		return ERR_INTERNAL;
+		return ERR_SDL;
 	}
 
 	tex->w = w;
@@ -166,7 +166,7 @@
 
 	if (!(tex->handle = SDL_CreateTextureFromSurface(RENDERER(), surface))) {
 		tex->w = tex->h = 0;
-		return ERR_INTERNAL;
+		return ERR_SDL;
 	}
 
 	tex->w = surface->w;