allow for debug checking of # of flushes per frame. checking to see if
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 Aug 2010 04:54:05 +0000 (04:54 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 9 Aug 2010 04:54:05 +0000 (04:54 +0000)
this all works

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@50919 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_common/evas_gl_context.c

index 9693e04..defba9c 100644 (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;