MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / updateGLXDrawable

Method updateGLXDrawable

server/EGLXVirtualWin.cpp:73–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71
72
73GLXDrawable EGLXVirtualWin::updateGLXDrawable(void)
74{
75 GLXDrawable retval = 0;
76 CriticalSection::SafeLock l(mutex);
77 if(deletedByWM) THROW("Window has been deleted by window manager");
78 if(newWidth > 0 && newHeight > 0)
79 {
80 OGLDrawable *draw = oglDraw;
81 if(oglDraw->getWidth() != newWidth || oglDraw->getHeight() != newHeight)
82 {
83 oglDraw = new OGLDrawable(edpy, newWidth, newHeight, (EGLConfig)config,
84 pbAttribs);
85 oldDraw = draw;
86 }
87 newWidth = newHeight = -1;
88 }
89 retval = oglDraw->getGLXDrawable();
90 return retval;
91}

Callers

nothing calls this directly

Calls 3

getWidthMethod · 0.45
getHeightMethod · 0.45
getGLXDrawableMethod · 0.45

Tested by

no test coverage detected