summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-05 23:09:45 +1100
committerquou <quou@disroot.org>2025-01-05 23:11:05 +1100
commit74a91b679e9be1381fe52cad5d7c63b8bc9fc534 (patch)
tree56c24dd7f44ddc9c1207a46a34ca420d86b0cbaf /video.cpp
parentbce070eba418c8a79f6affcd885564babbf8c9d3 (diff)
use rgba instead of rgb for HDR since nvidia gpu doesnt support it
Diffstat (limited to 'video.cpp')
-rw-r--r--video.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/video.cpp b/video.cpp
index f619643..47b7685 100644
--- a/video.cpp
+++ b/video.cpp
@@ -3696,6 +3696,10 @@ size_t Texture_Loader::calc_size(
return w * h * 6;
case texture_format_rgb32f:
return w * h * 12;
+ case texture_format_rgba16f:
+ return w * h * 8;
+ case texture_format_rgba32f:
+ return w * h * 16;
default:
print_err("Can't load this texture format.\n");
pbreak(45498);