summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-02-25 16:01:07 -0800
committer3gg <3gg@shellblade.net>2024-02-25 16:01:07 -0800
commitbf6767541c4922bf2574aed12da7087c33ff3bc6 (patch)
treeb9c07ea5f610187aaf56c1731f6228917f63b2a1
parent02a821e86f44cf9f92785026b664e84db708d813 (diff)
Use new error function.
-rw-r--r--gfx/src/render/texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/src/render/texture.c b/gfx/src/render/texture.c
index fd1d4dd..89f7ec0 100644
--- a/gfx/src/render/texture.c
+++ b/gfx/src/render/texture.c
@@ -13,7 +13,7 @@ bool gfx_init_texture(Texture* texture, const TextureDesc* desc) {
13 13
14 glGenTextures(1, &texture->id); 14 glGenTextures(1, &texture->id);
15 if (!texture->id) { 15 if (!texture->id) {
16 set_error("glGenTextures() failed"); 16 log_error("glGenTextures() failed");
17 return false; 17 return false;
18 } 18 }
19 texture->target = to_GL_dimension(desc->dimension); 19 texture->target = to_GL_dimension(desc->dimension);