diff options
author | 3gg <3gg@shellblade.net> | 2023-06-17 20:23:34 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-06-17 20:23:34 -0700 |
commit | 9d1eb251b5d26759e17dd7bee316cf27fdcb28bf (patch) | |
tree | 639b6f95cf4e9a00a388ae6c1d26dc4cebee6583 /gltfview | |
parent | 520e4e67cd9ff53f3c3512c80d07193625e07e3e (diff) |
Move and import error library from clib.
Diffstat (limited to 'gltfview')
-rw-r--r-- | gltfview/CMakeLists.txt | 1 | ||||
-rw-r--r-- | gltfview/src/game.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gltfview/CMakeLists.txt b/gltfview/CMakeLists.txt index 0b0c3cc..de745ce 100644 --- a/gltfview/CMakeLists.txt +++ b/gltfview/CMakeLists.txt | |||
@@ -13,6 +13,7 @@ target_include_directories(gltfview PRIVATE | |||
13 | 13 | ||
14 | target_link_libraries(gltfview PRIVATE | 14 | target_link_libraries(gltfview PRIVATE |
15 | cstring | 15 | cstring |
16 | error | ||
16 | gfx | 17 | gfx |
17 | gfx-app | 18 | gfx-app |
18 | list | 19 | list |
diff --git a/gltfview/src/game.c b/gltfview/src/game.c index 6d8430b..7470f75 100644 --- a/gltfview/src/game.c +++ b/gltfview/src/game.c | |||
@@ -9,11 +9,11 @@ | |||
9 | #include "game.h" | 9 | #include "game.h" |
10 | #include "plugins/plugin.h" | 10 | #include "plugins/plugin.h" |
11 | 11 | ||
12 | #include <gfx/error.h> | ||
13 | #include <gfx/render_backend.h> | 12 | #include <gfx/render_backend.h> |
14 | #include <gfx/scene/camera.h> | 13 | #include <gfx/scene/camera.h> |
15 | #include <gfx/scene/object.h> | 14 | #include <gfx/scene/object.h> |
16 | 15 | ||
16 | #include <error.h> | ||
17 | #include <log/log.h> | 17 | #include <log/log.h> |
18 | #include <math/camera.h> | 18 | #include <math/camera.h> |
19 | #include <plugin.h> | 19 | #include <plugin.h> |
@@ -105,7 +105,7 @@ bool game_new(Game* game, int argc, const char** argv) { | |||
105 | return true; | 105 | return true; |
106 | 106 | ||
107 | cleanup: | 107 | cleanup: |
108 | LOGE("Gfx error: %s", gfx_get_error()); | 108 | LOGE("Gfx error: %s", get_error()); |
109 | game_end(game); | 109 | game_end(game); |
110 | return false; | 110 | return false; |
111 | } | 111 | } |