summaryrefslogtreecommitdiffstats
path: root/core/resource
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
committeruntodesu <kirill@untode.su>2025-07-01 03:23:05 +0500
commit6dc5194895b6bd61d19bf5c95021471784084325 (patch)
tree705c35b3a671a09fc52b406dca81e7761729ded6 /core/resource
parent44d91043f268d93dd08e99c5855bd29f85dd61a7 (diff)
downloadvoxelius-6dc5194895b6bd61d19bf5c95021471784084325.tar.bz2
voxelius-6dc5194895b6bd61d19bf5c95021471784084325.zip
I forgot to set these to true in .clang-format
https://files.catbox.moe/909rig.gif
Diffstat (limited to 'core/resource')
-rw-r--r--core/resource/binfile.cc3
-rw-r--r--core/resource/image.cc9
2 files changed, 8 insertions, 4 deletions
diff --git a/core/resource/binfile.cc b/core/resource/binfile.cc
index e17db50..b8e3db8 100644
--- a/core/resource/binfile.cc
+++ b/core/resource/binfile.cc
@@ -39,7 +39,8 @@ void resource::hard_cleanup<BinFile>(void)
for(const auto& it : resource_map) {
if(it.second.use_count() > 1L) {
spdlog::warn("resource: zombie resource [BinFile] {} [use_count={}]", it.first, it.second.use_count());
- } else {
+ }
+ else {
spdlog::debug("resource: releasing [BinFile] {}", it.first);
}
diff --git a/core/resource/image.cc b/core/resource/image.cc
index 1601703..9ff0206 100644
--- a/core/resource/image.cc
+++ b/core/resource/image.cc
@@ -41,7 +41,8 @@ resource_ptr<Image> resource::load<Image>(const char* name, unsigned int flags)
if(flags & IMAGE_LOAD_FLIP) {
stbi_set_flip_vertically_on_load(true);
- } else {
+ }
+ else {
stbi_set_flip_vertically_on_load(false);
}
@@ -54,7 +55,8 @@ resource_ptr<Image> resource::load<Image>(const char* name, unsigned int flags)
if(flags & IMAGE_LOAD_GRAY) {
new_resource->pixels = stbi_load_from_callbacks(&callbacks, file, &new_resource->size.x, &new_resource->size.y, nullptr, STBI_grey);
- } else {
+ }
+ else {
new_resource->pixels = stbi_load_from_callbacks(
&callbacks, file, &new_resource->size.x, &new_resource->size.y, nullptr, STBI_rgb_alpha);
}
@@ -81,7 +83,8 @@ void resource::hard_cleanup<Image>(void)
for(const auto& it : resource_map) {
if(it.second.use_count() > 1L) {
spdlog::warn("resource: zombie resource [Image] {} [use_count={}]", it.first, it.second.use_count());
- } else {
+ }
+ else {
spdlog::debug("resource: releasing [Image] {}", it.first);
}