Skip to content

Commit

Permalink
SLM data casting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen Doornbos committed Oct 11, 2024
1 parent 9291127 commit 9373f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwfs/devices/slm/texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9373f9e

Please sign in to comment.