mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
@ commented out a piece of code that was for testing only
Fixed a bug that crashes the SurfaceManager sometimes
This commit is contained in:
parent
754c769513
commit
442bf3c278
2 changed files with 5 additions and 1 deletions
|
@ -349,7 +349,7 @@ namespace CodeImp.DoomBuilder.Editing
|
|||
private void LogRecordInfo(string info)
|
||||
{
|
||||
#if DEBUG
|
||||
General.WriteLogLine(info);
|
||||
//General.WriteLogLine(info);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -263,6 +263,10 @@ namespace CodeImp.DoomBuilder.Rendering
|
|||
int verticesperentry = set.numvertices * 2;
|
||||
int maxentriesperbuffer = MAX_VERTICES_PER_BUFFER / verticesperentry;
|
||||
|
||||
// Make a new bufer when the last one is full
|
||||
if((bufferindex > -1) && (set.buffersizes[bufferindex] >= (maxentriesperbuffer * verticesperentry)))
|
||||
bufferindex = -1;
|
||||
|
||||
while(addentries > 0)
|
||||
{
|
||||
// Create a new buffer?
|
||||
|
|
Loading…
Reference in a new issue