From 2d5b36bbef0221ff5dedb0f68159e8699d70db5e Mon Sep 17 00:00:00 2001 From: Sven Balzer <4653051+Kyuusokuna@users.noreply.github.com> Date: Tue, 25 Feb 2025 18:49:35 +0100 Subject: [PATCH] change colorspace of sprites back to linear --- src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 618672c..ea9d06b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -309,7 +309,7 @@ SDL_GPUTexture *create_shader_texture(const char *path) { SDL_GPUTextureFormat format = SDL_GPU_TEXTUREFORMAT_INVALID; if (channels == 1) format = SDL_GPU_TEXTUREFORMAT_A8_UNORM; - if (channels == 4) format = SDL_GPU_TEXTUREFORMAT_R8G8B8A8_UNORM_SRGB; + if (channels == 4) format = SDL_GPU_TEXTUREFORMAT_R8G8B8A8_UNORM; if (format == SDL_GPU_TEXTUREFORMAT_INVALID) { log_error("Failed to find texture format for texture (\"%s\").", path); @@ -418,7 +418,7 @@ SDL_GPUTexture* create_shader_texture_array(Uint32 num_textures, const char **te SDL_GPUTextureCreateInfo texture_info = { .type = SDL_GPU_TEXTURETYPE_2D_ARRAY, - .format = SDL_GPU_TEXTUREFORMAT_R8G8B8A8_UNORM_SRGB, + .format = SDL_GPU_TEXTUREFORMAT_R8G8B8A8_UNORM, .usage = SDL_GPU_TEXTUREUSAGE_SAMPLER, .width = (Uint32)width, .height = (Uint32)height, @@ -744,7 +744,6 @@ int main(int argc, char **argv) { ImGuiIO &io = ImGui::GetIO(); io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; - // io.ConfigFlags |= ImGuiConfigFlags_IsSRGB; ImGui::StyleColorsDark();