]> git.cworth.org Git - apitrace/commit
trim: Trim most drawing operations outside of the user-specified range
authorCarl Worth <cworth@cworth.org>
Mon, 13 Aug 2012 21:35:43 +0000 (14:35 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 22 Nov 2012 08:03:04 +0000 (08:03 +0000)
commitcc6e51c012f447a30072d8e4c3cdd453c361a3c0
tree4773b0d80343dd5e27aa5c16f2ed07851ca71770
parent5b827e13413d9790981601522eb9fe5070e5615e
trim: Trim most drawing operations outside of the user-specified range

Care is taken to consider a glBegin/glEnd block as a single drawing
operation, (so that it will enitrely included or entirely trimmed).

We're also careful to avoid trimming any drawing operation when there
are active side effects (other than rendering to the default
framebuffer). For example, if there is an active binding of
GL_FRAMEBUFFER or GL_DRAW_FRAMEBUFFER to any buffer object, or if we
are withing a glBeginTransformFeedback/glEndTransformFeedback block;
in any of these cases the drawing operation will not be trimmed.
cli/cli_trim.cpp