Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(map): Set raycasting rendering options in Image3d initializer
The default rendering options for Image3d have colormap_on_gpu and full_region_on_gpu set to false. This works fine for the shaders that handle planes drawings, but raycast drawings need both options set to true. One could previously make an Image3d with one of its default Planes drawings and then switch to the Raycasting mode, and these two options would be set to true in set_options. However, that function is not called during initialization, and if they aren't set then the wrong shader is compiled for an Image3d object trying to create a Raycast drawing first. The user would get a nasty graphics traceback. This commit sets those options during _auto_projection_mode, which is called early enough. Fixes Trac#16682
- Loading branch information