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

Function namedFramebufferDrawBuffers

server/backend.cpp:862–877  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860
861
862void namedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n,
863 const GLenum *bufs, bool ext)
864{
865 if(fconfig.egl)
866 {
867 FakePbuffer *pb;
868 if(framebuffer == 0
869 && (pb = PBHASHEGL.find(getCurrentDrawableEGL())) != NULL)
870 {
871 pb->setDrawBuffers(n, bufs, true);
872 return;
873 }
874 }
875 if(ext) _glFramebufferDrawBuffersEXT(framebuffer, n, bufs);
876 else _glNamedFramebufferDrawBuffers(framebuffer, n, bufs);
877}
878
879
880void namedFramebufferReadBuffer(GLuint framebuffer, GLenum mode, bool ext)

Callers 2

Calls 2

findMethod · 0.45
setDrawBuffersMethod · 0.45

Tested by

no test coverage detected