Remote changes at Mon Aug 7 14:38:50 EDT 2017 by chuan on vivaldi

This commit is contained in:
Chuan Chen 2017-08-07 14:38:50 -04:00
parent cc790050e3
commit 31ac164be4
1 changed files with 4 additions and 3 deletions

View File

@ -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 */