From c4dcd9609a4e0a968c58830301cfb49e2beffd4b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 3 Oct 2017 18:07:17 +0200 Subject: Don't clear entire cairo surface on each expose --- pugl/pugl_osx.m | 6 ------ pugl/pugl_x11.c | 6 ------ 2 files changed, 12 deletions(-) (limited to 'pugl') diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index 8ce6881..71d98a1 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -538,12 +538,6 @@ void puglEnterContext(PuglView* view) { [[view->impl->glview openGLContext] makeCurrentContext]; -#ifdef PUGL_HAVE_CAIRO - if (view->ctx_type & PUGL_CAIRO) { - cairo_set_source_rgb(view->impl->cr, 0, 0, 0); - cairo_paint(view->impl->cr); - } -#endif } void diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index 24df87e..dfa449e 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -219,12 +219,6 @@ puglEnterContext(PuglView* view) glXMakeCurrent(view->impl->display, view->impl->win, view->impl->ctx); } #endif -#ifdef PUGL_HAVE_CAIRO - if (view->ctx_type & PUGL_CAIRO) { - cairo_set_source_rgb(view->impl->cr, 0, 0, 0); - cairo_paint(view->impl->cr); - } -#endif } void -- cgit v1.2.1