@ commented out a piece of code that was for testing only

Fixed a bug that crashes the SurfaceManager sometimes
This commit is contained in:
codeimp 2009-06-19 07:53:39 +00:00
parent 754c769513
commit 442bf3c278
2 changed files with 5 additions and 1 deletions

View file

@ -349,7 +349,7 @@ namespace CodeImp.DoomBuilder.Editing
private void LogRecordInfo(string info)
{
#if DEBUG
General.WriteLogLine(info);
//General.WriteLogLine(info);
#endif
}

View file

@ -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?