diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
| commit | 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch) | |
| tree | 90ddefa28b40b6384dd9618bb7573704de2733a9 /src/game/client/program.cc | |
| parent | 6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff) | |
| download | voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2 voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip | |
Add include guards and header comments to sources
Diffstat (limited to 'src/game/client/program.cc')
| -rw-r--r-- | src/game/client/program.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/client/program.cc b/src/game/client/program.cc index 37cc964..5e7b5fb 100644 --- a/src/game/client/program.cc +++ b/src/game/client/program.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: program.cc +// Description: Varied OpenGL shader program + #include "client/pch.hh" #include "client/program.hh" @@ -78,7 +83,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_error()); + spdlog::warn("gl_program: {}: {}", vpath, physfs::last_error()); return false; } @@ -89,7 +94,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_error()); + spdlog::warn("gl_program: {}: {}", fpath, physfs::last_error()); return false; } |
