Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Model Renderer|Fixed: Dynamically enlarge vertex buffers to accommoda…
…te model vertices Previously Doomsday used fixed-size vertex buffers (and normals, etc...) while rendering models. However, as there now appears to be DMD files in the wild which use many more vertices than those which may be created using the original md2tool; we must now dynamically resize the vertex render buffers. Failure to do so results in the engine writing past the end of the static buffers and trashing memory. Vertex buffers are now dynamically resized according to the maximum number of vertices needed to render the densest model among those presently loaded. There however remains a fixed limit of 16192 vertices, primarily to prevent model authors from going completey OTT. If a model contains more than this number, a warning will be logged and the model will simply not be rendered.
- Loading branch information
1 parent
cb4d44e
commit 98b2fcb
Showing
4 changed files
with
309 additions
and
123 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
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
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
Oops, something went wrong.