[Gtkradiant] [Bug 581] New: Delete a GL list we haven't generated

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Wed, 03 Jul 2002 15:29:04 -0500


http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=581

           Summary: Delete a GL list we haven't generated
           Product: GtkRadiant
           Version: 1.2
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: model
        AssignedTo: ttimo@idsoftware.com
        ReportedBy: michael@johalla.de


Another "only suppress a warning" patch.

We should call glDeleteLists only if we have a valid nListID.

--- GtkRadiant.orig/radiant/pmesh.cpp	Sun Jun 30 23:10:41 2002
+++ GtkRadiant.pmesh/radiant/pmesh.cpp	Wed Jul  3 21:41:55 2002
@@ -4211,7 +4211,8 @@
 		p->colLOD[i] = BTree_Delete(p->colLOD[i]);
 
   // delete display list associated with patch
-  qglDeleteLists (p->nListID, 1); // list#, number of lists
+  if (p->nListID != -1)
+    qglDeleteLists (p->nListID, 1); // list#, number of lists
   
   // delete LOD drawLists
   Patch_DeleteDrawLists(p);



------- You are receiving this mail because: -------
Whoops!  I have no idea!