Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1d9388e authored by Mathias Agopian's avatar Mathias Agopian
Browse files

show that we need to glClear to be fast(er)

parent 0d63f816
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -157,12 +157,15 @@ int main(int argc, char** argv)
     }
     
     glMatrixMode(GL_MODELVIEW);
     //glEnable(GL_SCISSOR_TEST);
     //glScissor(0,dim,dim,h-dim);
     glScissor(0,dim,dim,h-dim);
     glDisable(GL_SCISSOR_TEST);
     
     for (int y=0 ; y<dim ; y++) {
         //glDisable(GL_SCISSOR_TEST);
         glClear(GL_COLOR_BUFFER_BIT);

         //glEnable(GL_SCISSOR_TEST);

#if USE_DRAW_TEXTURE && GL_OES_draw_texture
         glDrawTexiOES(0, y, 1, dim, dim);
#else