diff options
author | Quentin Wenger <matpi@protonmail.ch> | 2015-06-24 13:52:54 +0300 |
---|---|---|
committer | Porteries Tristan <republicthunderbolt9@gmail.com> | 2015-06-24 14:03:23 +0300 |
commit | 49aa7b1261a45e5e290c12ebc35ef15687971556 (patch) | |
tree | c55b1bac83c926f8005882485d5523c81a406cf2 /source/gameengine/VideoTexture | |
parent | 1676fcded0ff5a93988444f4d3189a398b004a79 (diff) |
BGE: Fix color used as background in VideoTexture.
Now we use color converted (if we do a color management) by the setter for background color in VideoTexture (ImageRender & ImageMirror).
Reviewers:panzergame
Diffstat (limited to 'source/gameengine/VideoTexture')
-rw-r--r-- | source/gameengine/VideoTexture/ImageRender.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/VideoTexture/ImageRender.cpp b/source/gameengine/VideoTexture/ImageRender.cpp index 2f85122cae8..0850995eaaf 100644 --- a/source/gameengine/VideoTexture/ImageRender.cpp +++ b/source/gameengine/VideoTexture/ImageRender.cpp @@ -109,7 +109,7 @@ void ImageRender::setBackground (float red, float green, float blue, float alpha void ImageRender::setBackgroundFromScene (KX_Scene *scene) { if (scene) { - const float *background_color = scene->GetWorldInfo()->getBackColor(); + const float *background_color = scene->GetWorldInfo()->getBackColorConverted(); copy_v3_v3(m_background, background_color); m_background[3] = 1.0f; } |