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

Function glXWaitGL

server/faker-gl.cpp:113–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112
113void glXWaitGL(void)
114{
115 if(faker::getOGLExcludeCurrent() || faker::getEGLXContextCurrent())
116 {
117 _glXWaitGL(); return;
118 }
119
120 TRY();
121
122 /////////////////////////////////////////////////////////////////////////////
123 if(fconfig.trace) vglout.print("[VGL] glXWaitGL()\n");
124 /////////////////////////////////////////////////////////////////////////////
125
126 DISABLE_FAKER();
127
128 _glFinish(); // glXWaitGL() on some systems calls glFinish(), so we do this
129 // to avoid 2 readbacks
130 fconfig.flushdelay = 0.;
131 doGLReadback(false, fconfig.sync);
132
133 CATCH();
134 ENABLE_FAKER();
135}
136
137
138void glBindFramebuffer(GLenum target, GLuint framebuffer)

Callers 1

readbackTestFunction · 0.85

Calls 2

doGLReadbackFunction · 0.85
printMethod · 0.45

Tested by

no test coverage detected