Cycles: fix preview render in 3d view not working on OS X.

This commit is contained in:
Brecht Van Lommel
2011-09-15 16:09:42 +00:00
parent 089abdecf7
commit 5f13b52c67

View File

@@ -2655,6 +2655,11 @@ static const char *cpp_classes = ""
"class Array {\n"
"public:\n"
" T data[Tsize];\n"
"\n"
" Array() {}\n"
" Array(const Array<T, Tsize>& other) { memcpy(data, other.data, sizeof(T)*Tsize); }\n"
" const Array<T, Tsize>& operator=(const Array<T, Tsize>& other) { memcpy(data, other.data, sizeof(T)*Tsize); return *this; }\n"
"\n"
" operator T*() { return data; }\n"
"};\n"
"\n"