Skip to content

Commit 071d57c

Browse files
committed
fix texture view dimension
1 parent 93ec437 commit 071d57c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastplotlib/ui/right_click_menus/_colormap_picker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _create_texture_and_upload(self, data: np.ndarray) -> tuple[int, GPUTexture]
7979
)
8080

8181
# get a view
82-
texture_view = texture.create_view()
82+
texture_view = texture.create_view(dimension=wgpu.TextureViewDimension.d2)
8383

8484
# return texture ref
8585
return self.imgui_renderer.backend.register_texture(texture_view)

0 commit comments

Comments
 (0)