From 48caadfdd5ed8750213451220238b05caf2c3148 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 19 Jun 2016 20:17:03 +0200 Subject: Fix Cycles assert after recent half changes. --- intern/cycles/device/device_memory.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/intern/cycles/device/device_memory.h b/intern/cycles/device/device_memory.h index 8c32d03135e..5b5b4dc6802 100644 --- a/intern/cycles/device/device_memory.h +++ b/intern/cycles/device/device_memory.h @@ -150,6 +150,11 @@ template<> struct device_type_traits { static const int num_elements = 4; }; +template<> struct device_type_traits { + static const DataType data_type = TYPE_HALF; + static const int num_elements = 1; +}; + template<> struct device_type_traits { static const DataType data_type = TYPE_HALF; static const int num_elements = 4; -- cgit v1.2.3