Cycles: Fix possibly uninitialized variable
Hopefully this was a reason of randomly disappearing textures in our renders.
This commit is contained in:
parent
df88d54284
commit
810d7d4694
Notes:
blender-bot
2023-02-14 07:15:21 +01:00
Referenced by issue #50948, UI - Menu icons are no longer aligned Referenced by issue #50899, Blender : Mesh to Curve : Hard crash when target mesh has a object shrinkwrapped to it Referenced by issue #50565, Transform: Planar constraints don't work properly with non-Blender key configurations
|
@ -285,9 +285,8 @@ int ImageManager::add_image(const string& filename,
|
|||
|
||||
thread_scoped_lock device_lock(device_mutex);
|
||||
|
||||
/* Do we have a float? */
|
||||
if(type == IMAGE_DATA_TYPE_FLOAT || type == IMAGE_DATA_TYPE_FLOAT4)
|
||||
is_float = true;
|
||||
/* Check whether it's a float texture. */
|
||||
is_float = (type == IMAGE_DATA_TYPE_FLOAT || type == IMAGE_DATA_TYPE_FLOAT4);
|
||||
|
||||
/* No single channel and half textures on CUDA (Fermi) and no half on OpenCL, use available slots */
|
||||
if((type == IMAGE_DATA_TYPE_FLOAT ||
|
||||
|
|
Loading…
Reference in New Issue