diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-07-02 15:11:11 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-07-02 22:54:49 +0300 |
commit | 2c9add965b27b4fbb3a2ed99bd248c7b2b41ddcc (patch) | |
tree | 3ac91e091ddc752153ae1add09a911b4e40afb21 | |
parent | 0d4961cc52ce3a66da4f5686a4e63a46aed6de67 (diff) |
Fix use of uninitialized variable in Cycles OpenCL image textures.
-rw-r--r-- | intern/cycles/render/image.cpp | 3 |
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 */ |