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

Function glReadPixels

server/faker-gl.cpp:836–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

834
835
836void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
837 GLenum format, GLenum type, GLvoid *pixels)
838{
839 if(faker::getOGLExcludeCurrent() || faker::getEGLXContextCurrent())
840 {
841 _glReadPixels(x, y, width, height, format, type, pixels);
842 return;
843 }
844
845 TRY();
846
847 backend::readPixels(x, y, width, height, format, type, pixels);
848
849 CATCH();
850}
851
852
853// Sometimes XNextEvent() is called from a thread other than the

Callers 7

checkBufferColorFunction · 0.85
readbackTestFunction · 0.85
checkBufferColorFunction · 0.85
readbackTestFunction · 0.85
WriteFileFunction · 0.85
clearFBFunction · 0.85
readTestFunction · 0.85

Calls 1

readPixelsFunction · 0.85

Tested by 2

clearFBFunction · 0.68
readTestFunction · 0.68