Skip to content

Commit 9317377

Browse files
committed
Set self._data_dtype in scale_and_set_data for CPU scaled textures
1 parent a423fff commit 9317377

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vispy/visuals/_scalable_textures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def _scale_data_on_cpu(data, clim, copy=True):
311311
def scale_and_set_data(self, data, offset=None, copy=True):
312312
"""Upload new data to the GPU, scaling if necessary."""
313313
if self._data_dtype is None:
314-
data.dtype == self._data_dtype
314+
self._data_dtype = data.dtype
315315

316316
# ensure dtype is the same as it was before, or funny things happen
317317
# no copy is performed unless asked for or necessary

0 commit comments

Comments
 (0)