]> git.cworth.org Git - vogl/commitdiff
UI: Calls within glBegin/glEnd blocks are now nested in the API call tree (including...
authorPeterLValve <peterl@valvesoftware.com>
Tue, 25 Mar 2014 16:23:58 +0000 (09:23 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 1 Apr 2014 19:37:32 +0000 (12:37 -0700)
src/vogleditor/vogleditor_qapicalltreemodel.cpp

index 3c75d3ec749d8d26f87d65ed3e5a03e62e81872b..a3f8ca3a03ab13d1e9e3c2c68a9ddcd744352554 100644 (file)
@@ -235,6 +235,16 @@ void vogleditor_QApiCallTreeModel::setupModelData(vogl_trace_file_reader* pTrace
             // reset the CurFrame so that a new frame node will be created on the next api call
             pCurFrame = NULL;
          }
             // reset the CurFrame so that a new frame node will be created on the next api call
             pCurFrame = NULL;
          }
+         else if (entrypoint_id == VOGL_ENTRYPOINT_glBegin)
+         {
+             // items in the glBegin/glEnd block will be nested, including the glEnd
+             pCurParent = item;
+         }
+         else if (entrypoint_id == VOGL_ENTRYPOINT_glEnd)
+         {
+             // move the parent back one level of the hierarchy, to its own parent
+             pCurParent = pCurParent->parent();
+         }
       }
 
       if (pTrace_reader->get_packet_type() == cTSPTEOF)
       }
 
       if (pTrace_reader->get_packet_type() == cTSPTEOF)