Fix use of uninitialized variable in Cycles OpenCL image textures.

This commit is contained in:
Brecht Van Lommel 2016-07-02 14:11:11 +02:00
parent 0d4961cc52
commit 2c9add965b
Notes: blender-bot 2023-02-14 07:47:59 +01:00
Referenced by issue #48720, Extend doesn't work on in GPU(OpenCL/OpenGL) rendering
1 changed files with 2 additions and 1 deletions

View File

@ -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 */