diff options
author | Dave Airlie <[email protected]> | 2011-06-22 13:09:12 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-07-14 15:22:58 +0100 |
commit | b6df603e650527d5fa7f0fc1448be1bb57f47fbb (patch) | |
tree | 9205f6d4abc5670eff767e503ed3d81f5d0b9260 /src | |
parent | e5f7e09210838376ba64c6c09b6270046b0feab1 (diff) |
vbo: minor optimisation in vbo_exec_DrawRangeElements
this moves getting the context into the debug in this function,
just spotted it trawling callgrind traces for other things.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/vbo/vbo_exec_array.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 7959337decb..b908d5aea7e 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -972,13 +972,13 @@ static void GLAPIENTRY vbo_exec_DrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices) { - GET_CURRENT_CONTEXT(ctx); - - if (MESA_VERBOSE & VERBOSE_DRAW) + if (MESA_VERBOSE & VERBOSE_DRAW) { + GET_CURRENT_CONTEXT(ctx); _mesa_debug(ctx, "glDrawRangeElements(%s, %u, %u, %d, %s, %p)\n", _mesa_lookup_enum_by_nr(mode), start, end, count, _mesa_lookup_enum_by_nr(type), indices); + } vbo_exec_DrawRangeElementsBaseVertex(mode, start, end, count, type, indices, 0); |