From: PeterLValve Date: Mon, 24 Mar 2014 16:36:56 +0000 (-0700) Subject: UI: Consider glBitmap and glEnd drawcalls when using the "Prev DC" and "Next DC"... X-Git-Url: https://git.cworth.org/git?p=vogl;a=commitdiff_plain;h=4e5ccdbb2e6011e47af25c709164cc9e6a1a6a0f UI: Consider glBitmap and glEnd drawcalls when using the "Prev DC" and "Next DC" buttons --- diff --git a/src/vogleditor/vogleditor_qapicalltreemodel.cpp b/src/vogleditor/vogleditor_qapicalltreemodel.cpp index 77493a0..3c75d3e 100644 --- a/src/vogleditor/vogleditor_qapicalltreemodel.cpp +++ b/src/vogleditor/vogleditor_qapicalltreemodel.cpp @@ -528,7 +528,9 @@ vogleditor_apiCallTreeItem *vogleditor_QApiCallTreeModel::find_prev_drawcall(vog { gl_entrypoint_id_t entrypointId = static_cast(pItem->apiCallItem()->getGLPacket()->m_entrypoint_id); if (vogl_is_draw_entrypoint(entrypointId) || - vogl_is_clear_entrypoint(entrypointId)) + vogl_is_clear_entrypoint(entrypointId) || + (entrypointId == VOGL_ENTRYPOINT_glBitmap) || + (entrypointId == VOGL_ENTRYPOINT_glEnd)) { pFound = iter.peekPrevious(); break; @@ -561,7 +563,9 @@ vogleditor_apiCallTreeItem *vogleditor_QApiCallTreeModel::find_next_drawcall(vog { gl_entrypoint_id_t entrypointId = static_cast(pItem->apiCallItem()->getGLPacket()->m_entrypoint_id); if (vogl_is_draw_entrypoint(entrypointId) || - vogl_is_clear_entrypoint(entrypointId)) + vogl_is_clear_entrypoint(entrypointId) || + (entrypointId == VOGL_ENTRYPOINT_glBitmap) || + (entrypointId == VOGL_ENTRYPOINT_glEnd)) { pFound = iter.peekNext(); break;