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

Function glGetStringi

server/faker-gl.cpp:642–663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640
641
642const GLubyte *glGetStringi(GLenum name, GLuint index)
643{
644 const GLubyte *string = NULL;
645
646 if(faker::getOGLExcludeCurrent() || faker::getEGLXContextCurrent())
647 return _glGetStringi(name, index);
648
649 TRY();
650
651 string = _glGetStringi(name, index);
652 if(name == GL_EXTENSIONS && string
653 && !strcmp((char *)string, "GL_EXT_x11_sync_object"))
654 {
655 // This is a hack to avoid interposing the various flavors of
656 // glGetInteger*() and modifying the value returned for GL_NUM_EXTENSIONS.
657 string = (const GLubyte *)"";
658 }
659
660 CATCH();
661
662 return string;
663}
664
665
666void glNamedFramebufferDrawBuffer(GLuint framebuffer, GLenum buf)

Callers 2

extensionQueryTestFunction · 0.85
extensionQueryTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected