summaryrefslogtreecommitdiffstats
path: root/game/client/program.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
committeruntodesu <kirill@untode.su>2025-09-14 19:16:44 +0500
commit8bcbd2729388edc63c82d77d314b583af1447c49 (patch)
tree460c2b509372077f6adf95d72c4245988a580aed /game/client/program.cc
parent7fc7fdb001bea8674fe0dbc1b962f3ec2702debb (diff)
downloadvoxelius-8bcbd2729388edc63c82d77d314b583af1447c49.tar.bz2
voxelius-8bcbd2729388edc63c82d77d314b583af1447c49.zip
Cleanup math with qfengine ports again
Diffstat (limited to 'game/client/program.cc')
-rw-r--r--game/client/program.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/game/client/program.cc b/game/client/program.cc
index 9eba02f..6a2dfa0 100644
--- a/game/client/program.cc
+++ b/game/client/program.cc
@@ -2,6 +2,8 @@
#include "client/program.hh"
+#include "core/io/physfs.hh"
+
#include "core/utils/string.hh"
// This fills up the array of source lines and figures out
@@ -76,7 +78,7 @@ bool GL_Program::setup(std::string_view vpath, std::string_view fpath)
auto vfile = PHYSFS_openRead(vert_path.c_str());
if(vfile == nullptr) {
- spdlog::warn("gl_program: {}: {}", vpath, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
+ spdlog::warn("gl_program: {}: {}", vpath, io::physfs_error());
return false;
}
@@ -87,7 +89,7 @@ bool GL_Program::setup(std::string_view vpath, std::string_view fpath)
auto ffile = PHYSFS_openRead(frag_path.c_str());
if(ffile == nullptr) {
- spdlog::warn("gl_program: {}: {}", fpath, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
+ spdlog::warn("gl_program: {}: {}", fpath, io::physfs_error());
return false;
}