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

Function doGLReadback

server/faker-gl.cpp:23–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#include "faker.h"
22
23static 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
48extern "C" {

Callers 3

glFinishFunction · 0.85
glFlushFunction · 0.85
glXWaitGLFunction · 0.85

Calls 5

getCurrentDrawableFunction · 0.85
DrawingToFrontFunction · 0.85
findMethod · 0.45
getGLXDrawableMethod · 0.45
readbackMethod · 0.45

Tested by

no test coverage detected