Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-01-31 17:41:42 +0300
committerJeroen Bakker <jeroen@blender.org>2022-01-31 17:43:13 +0300
commit9578fe30682360e7b9554afd8d23cceed55c70bd (patch)
tree6fa6e3a5f11ce42ba2613cd6039821d71fad1fac /source/blender/gpu/shaders/gpu_shader_flat_color_frag.glsl
parent2216699c6468f381344ea211626c30ac810ee0e3 (diff)
Fix T95341: BGL renders incorrect color
Missing include statements of the gpu_shader_colorspace_lib.glsl in various shaders ignored the target texture color space.
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_flat_color_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_flat_color_frag.glsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_flat_color_frag.glsl b/source/blender/gpu/shaders/gpu_shader_flat_color_frag.glsl
index 1675de3d567..28a716104f1 100644
--- a/source/blender/gpu/shaders/gpu_shader_flat_color_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_flat_color_frag.glsl
@@ -1,3 +1,5 @@
+#pragma BLENDER_REQUIRE(gpu_shader_colorspace_lib.glsl)
+
#ifndef USE_GPU_SHADER_CREATE_INFO
flat in vec4 finalColor;
out vec4 fragColor;