Changeset c4dcd96 in pugl


Ignore:
Timestamp:
Oct 3, 2017, 9:10:18 AM (7 weeks ago)
Author:
David Robillard <d@…>
Branches:
master
Parents:
39ad849
git-author:
David Robillard <d@…> (10/03/17 09:07:17)
git-committer:
David Robillard <d@…> (10/03/17 09:10:18)
Message:

Don't clear entire cairo surface on each expose

Location:
pugl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pugl/pugl_osx.m

    r39ad849 rc4dcd96  
    539539{
    540540    [[view->impl->glview openGLContext] makeCurrentContext];
    541 #ifdef PUGL_HAVE_CAIRO
    542     if (view->ctx_type & PUGL_CAIRO) {
    543         cairo_set_source_rgb(view->impl->cr, 0, 0, 0);
    544         cairo_paint(view->impl->cr);
    545     }
    546 #endif
    547541}
    548542
  • pugl/pugl_x11.c

    r39ad849 rc4dcd96  
    218218    if (view->ctx_type & PUGL_GL) {
    219219        glXMakeCurrent(view->impl->display, view->impl->win, view->impl->ctx);
    220     }
    221 #endif
    222 #ifdef PUGL_HAVE_CAIRO
    223     if (view->ctx_type & PUGL_CAIRO) {
    224         cairo_set_source_rgb(view->impl->cr, 0, 0, 0);
    225         cairo_paint(view->impl->cr);
    226220    }
    227221#endif
Note: See TracChangeset for help on using the changeset viewer.