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:
Sergey Sharybin
2012-11-05 08:05:24 +00:00
parent 759ea40787
commit 540c9d4208
3 changed files with 10 additions and 1 deletions

View File

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