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:
Diffstat (limited to 'intern/cycles/render/nodes.cpp')
-rw-r--r--intern/cycles/render/nodes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 757aa8048b0..8e7969cfbaf 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -396,7 +396,7 @@ void ImageTextureNode::compile(OSLCompiler &compiler)
if (slot == -1) {
compiler.parameter_texture(
- "filename", filename, compress_as_srgb ? known_colorspace : u_colorspace_raw);
+ "filename", filename, compress_as_srgb ? u_colorspace_raw : known_colorspace);
}
else {
compiler.parameter_texture("filename", slot);
@@ -584,7 +584,7 @@ void EnvironmentTextureNode::compile(OSLCompiler &compiler)
if (slot == -1) {
compiler.parameter_texture(
- "filename", filename, compress_as_srgb ? known_colorspace : u_colorspace_raw);
+ "filename", filename, compress_as_srgb ? u_colorspace_raw : known_colorspace);
}
else {
compiler.parameter_texture("filename", slot);