-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport cloud rendering tear-down fixes
The vertex buffer may be null if there is no geometry within the view distance, but the tear-down function will not check before trying to delete the buffer. Additionally, make sure that we de-allocate the vertex buffer when there is no geometry visible, to avoid leaking buffer handles.
- Loading branch information
1 parent
1bd4f06
commit b804224
Showing
1 changed file
with
17 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters