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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2016-07-02 15:11:11 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2016-07-02 22:54:49 +0300
commit2c9add965b27b4fbb3a2ed99bd248c7b2b41ddcc (patch)
tree3ac91e091ddc752153ae1add09a911b4e40afb21 /intern/cycles
parent0d4961cc52ce3a66da4f5686a4e63a46aed6de67 (diff)
Fix use of uninitialized variable in Cycles OpenCL image textures.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/render/image.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/render/image.cpp b/intern/cycles/render/image.cpp
index d497661ee1d..614620c14af 100644
--- a/intern/cycles/render/image.cpp
+++ b/intern/cycles/render/image.cpp
@@ -1078,7 +1078,8 @@ void ImageManager::device_update_slot(Device *device,
uint8_t ImageManager::pack_image_options(ImageDataType type, size_t slot)
{
- uint8_t options;
+ uint8_t options = 0;
+
/* Image Options are packed into one uint:
* bit 0 -> Interpolation
* bit 1 + 2 + 3-> Extension */