forked from bartvdbraak/blender
Fix use of uninitialized variable in Cycles OpenCL image textures.
This commit is contained in:
parent
0d4961cc52
commit
2c9add965b
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user