| 71 | |
| 72 | |
| 73 | GLXDrawable 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 | } |
nothing calls this directly
no test coverage detected