From 5a67d0a9c5567486a1ad53e944531efed27a5b67 Mon Sep 17 00:00:00 2001 From: Maurice Heumann Date: Sat, 15 May 2021 23:28:18 +0200 Subject: [PATCH] Better flags --- src/client/component/images.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client/component/images.cpp b/src/client/component/images.cpp index 989c539..a5e6849 100644 --- a/src/client/component/images.cpp +++ b/src/client/component/images.cpp @@ -1,6 +1,5 @@ #include #include "loader/component_loader.hpp" -#include "filesystem.hpp" #include "game/game.hpp" #include @@ -101,7 +100,10 @@ namespace images return false; } - game::Image_Setup(image, raw_image->get_width(), raw_image->get_height(), 1, 1, 0x1000003, + image->imageFormat |= 0x1000003; + image->imageFormat &= ~0x2030000; + + game::Image_Setup(image, raw_image->get_width(), raw_image->get_height(), image->depth, image->numElements, image->imageFormat, DXGI_FORMAT_R8G8B8A8_UNORM, image->name, nullptr); upload_texture(image->textures.map, *raw_image);