From 65b68457599d068ace2b52bfd3e3d926974b9fe5 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 9 Aug 2010 04:54:05 +0000 Subject: [PATCH] allow for debug checking of # of flushes per frame. checking to see if this all works SVN revision: 50919 --- .../evas/src/modules/engines/gl_common/evas_gl_context.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c index 9693e046b3..defba9c141 100644 --- a/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c +++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_context.c @@ -640,8 +640,15 @@ void evas_gl_common_context_newframe(Evas_GL_Context *gc) { int i; + static int dbgflushnum = -1; -// printf("prev frame flushnum = %i\n", gc->flushnum); + if (dbgflushnum < 0) + { + dbgflushnum = 0; + if (getenv("DBGEVAS")) dbgflushnum = 1; + } + if (dbgflushnum) printf("prev-flushnum: %i\n", gc->flushnum); + gc->flushnum = 0; gc->state.current.cur_prog = 0; gc->state.current.cur_tex = 0;