| 21 | #include "faker.h" |
| 22 | |
| 23 | static void doGLReadback(bool spoilLast, bool sync) |
| 24 | { |
| 25 | GLXDrawable drawable = backend::getCurrentDrawable(); |
| 26 | if(!drawable) return; |
| 27 | |
| 28 | faker::VirtualWin *vw; |
| 29 | if((vw = WINHASH.find(NULL, drawable)) != NULL) |
| 30 | { |
| 31 | if(DrawingToFront() || vw->dirty) |
| 32 | { |
| 33 | ///////////////////////////////////////////////////////////////////////// |
| 34 | OPENTRACE(doGLReadback); PRARGX(vw->getGLXDrawable()); PRARGI(sync); |
| 35 | PRARGI(spoilLast); STARTTRACE(); |
| 36 | ///////////////////////////////////////////////////////////////////////// |
| 37 | |
| 38 | vw->readback(GL_FRONT, spoilLast, sync); |
| 39 | |
| 40 | ///////////////////////////////////////////////////////////////////////// |
| 41 | STOPTRACE(); CLOSETRACE(); |
| 42 | ///////////////////////////////////////////////////////////////////////// |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | |
| 48 | extern "C" { |
no test coverage detected