Cycles: fix crash rendering textured objects in OpenCL
Issue was caused by changed order of texture slots -- float textures have got lower slots indices than byte textures. OpenCL was still assuming byte textures goes before float.
This commit is contained in:
@@ -25,9 +25,10 @@
|
||||
#include "util_thread.h"
|
||||
#include "util_vector.h"
|
||||
|
||||
#include "kernel_types.h" /* for TEX_NUM_FLOAT_IMAGES */
|
||||
|
||||
CCL_NAMESPACE_BEGIN
|
||||
|
||||
#define TEX_NUM_FLOAT_IMAGES 5
|
||||
#define TEX_NUM_IMAGES 95
|
||||
#define TEX_IMAGE_BYTE_START TEX_NUM_FLOAT_IMAGES
|
||||
|
||||
|
Reference in New Issue
Block a user