X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fglws_glx.cpp;h=1494d060d7245cae687637db7c5452cc6a6c2f2b;hb=342e9725ecc44cf882ee13f87d5099f71f2700af;hp=575776e7cb3645c91b27bef8ecd268aa253f4dea;hpb=e9392864d660f2d4e2c325e9b01ff7121786d92c;p=apitrace diff --git a/retrace/glws_glx.cpp b/retrace/glws_glx.cpp index 575776e..1494d06 100644 --- a/retrace/glws_glx.cpp +++ b/retrace/glws_glx.cpp @@ -104,8 +104,8 @@ class GlxDrawable : public Drawable public: Window window; - GlxDrawable(const Visual *vis, int w, int h) : - Drawable(vis, w, h) + GlxDrawable(const Visual *vis, int w, int h, bool pbuffer) : + Drawable(vis, w, h, pbuffer) { XVisualInfo *visinfo = static_cast(visual)->visinfo; @@ -238,6 +238,8 @@ public: void init(void) { + XInitThreads(); + display = XOpenDisplay(NULL); if (!display) { std::cerr << "error: unable to open display " << XDisplayName(NULL) << "\n"; @@ -313,9 +315,9 @@ createVisual(bool doubleBuffer, Profile profile) { } Drawable * -createDrawable(const Visual *visual, int width, int height) +createDrawable(const Visual *visual, int width, int height, bool pbuffer) { - return new GlxDrawable(visual, width, height); + return new GlxDrawable(visual, width, height, pbuffer); } Context *