Code refactor: move more memory allocation logic into device API.
[blender.git] / intern / cycles / device / device_network.h
index 8a53290f421e2f9f6c762bf79ea9556503bccba5..a38d962c0af9ab83d0740088a32c89ffe038fb3c 100644 (file)
@@ -279,6 +279,11 @@ public:
 
                mem.name = name.c_str();
                mem.data_pointer = 0;
+
+               /* Can't transfer OpenGL texture over network. */
+               if(mem.type == MEM_PIXELS) {
+                       mem.type = MEM_WRITE_ONLY;
+               }
        }
 
        template<typename T> void read(T& data)