allow for debug checking of # of flushes per frame. checking to see if

this all works



SVN revision: 50919
This commit is contained in:
Carsten Haitzler 2010-08-09 04:54:05 +00:00
parent 6320a8db84
commit 65b6845759
1 changed files with 8 additions and 1 deletions

View File

@ -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;