From 31ac164be440d6f1e06c24dca9977346c2107c53 Mon Sep 17 00:00:00 2001 From: Chuan Chen Date: Mon, 7 Aug 2017 14:38:50 -0400 Subject: [PATCH] Remote changes at Mon Aug 7 14:38:50 EDT 2017 by chuan on vivaldi --- graphics/grTCairo1.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/graphics/grTCairo1.c b/graphics/grTCairo1.c index f9eb1397..0b4eb229 100644 --- a/graphics/grTCairo1.c +++ b/graphics/grTCairo1.c @@ -410,10 +410,11 @@ int llx, lly, width, height; */ cairopmap = XCreatePixmap(grXdpy, grXscrn, width, height, tcairoCurrent.depth); grCairoSurface = cairo_xlib_surface_create(grXdpy, cairopmap, grVisualInfo->visual, width, height); - //cairo_set_source(grCairoContext); } - else - glXMakeCurrent(grXdpy, (GLXDrawable)toglCurrent.windowid, grXcontext); + else { + //glXMakeCurrent(grXdpy, (GLXDrawable)toglCurrent.windowid, grXcontext); + grCairoSurface = cairo_xlib_surface_create(grXdpy, tcairoCurrent.window, grVisualInfo->visual, Tk_Width(tcairoCurrent.window), Tk_Height(tcairoCurrent.window)); + } #ifndef OGL_SERVER_SIDE_ONLY /* For batch-processing lines and rectangles */