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

Function namedFramebufferDrawBuffer

server/backend.cpp:845–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843
844
845void namedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf, bool ext)
846{
847 if(fconfig.egl)
848 {
849 FakePbuffer *pb;
850 if(framebuffer == 0
851 && (pb = PBHASHEGL.find(getCurrentDrawableEGL())) != NULL)
852 {
853 pb->setDrawBuffer(buf, true);
854 return;
855 }
856 }
857 if(ext) _glFramebufferDrawBufferEXT(framebuffer, buf);
858 else _glNamedFramebufferDrawBuffer(framebuffer, buf);
859}
860
861
862void namedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n,

Callers 2

Calls 2

setDrawBufferMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected