diff --git a/openwfs/devices/slm/texture.py b/openwfs/devices/slm/texture.py index 6d8228d..1f69d3c 100644 --- a/openwfs/devices/slm/texture.py +++ b/openwfs/devices/slm/texture.py @@ -41,7 +41,7 @@ def set_data(self, value): The texture data is directly copied to the GPU memory, so the original data array can be modified or deleted. """ - value = np.array(value, dtype=np.float32, order="C", copy=False) + value = np.asarray(value, dtype=np.float32, order="C") with self.context: GL.glBindTexture(self.type, self.handle)