Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/engines/gl_x11


Modified Files:
        evas_engine.c 


Log Message:


force fullscreen edraws for gl - this holw buffer swap thing just doesnt work
well otherwise... - and copying from back to front buffer is really a no-go :(

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/gl_x11/evas_engine.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- evas_engine.c       23 Jan 2004 02:14:06 -0000      1.10
+++ evas_engine.c       18 Jun 2004 15:56:30 -0000      1.11
@@ -292,10 +292,17 @@
    /* smple bounding box */
    if (!re->win->draw.redraw)
      {
+#if 0  
        re->win->draw.x1 = x;
        re->win->draw.y1 = y;
        re->win->draw.x2 = x + w - 1;
        re->win->draw.y2 = y + h - 1;
+#else
+       re->win->draw.x1 = 0;
+       re->win->draw.y1 = 0;
+       re->win->draw.x2 = re->win->w - 1;
+       re->win->draw.y2 = re->win->h - 1;
+#endif 
      }
    else
      {
@@ -371,15 +378,16 @@
    evas_engine_gl_x11_window_use(re->win);
 
 /* SLOW AS ALL HELL! */
-/*   
+#if 0
    evas_gl_common_swap_rect(re->win->gl_context, 
                            re->win->draw.x1, re->win->draw.y1,
                            re->win->draw.x2 - re->win->draw.x1 + 1,
                            re->win->draw.y2 - re->win->draw.y1 + 1);
- */
+#else
    glXSwapBuffers(re->win->disp, re->win->win);   
-//   glFlush();
-//   glXWaitGL();
+#endif   
+   glFlush();
+   glXWaitGL();
 //   XSync(re->win->disp, False);
 //   printf("SYNC! %i\n", fr++);
 }




-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to