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

Function glXGetCurrentDisplay

server/faker-glx.cpp:1035–1059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1033// drawable.
1034
1035Display *glXGetCurrentDisplay(void)
1036{
1037 Display *dpy = NULL; faker::VirtualWin *vw;
1038
1039 if(faker::getGLXExcludeCurrent()) return _glXGetCurrentDisplay();
1040
1041 TRY();
1042
1043 /////////////////////////////////////////////////////////////////////////////
1044 OPENTRACE(glXGetCurrentDisplay); STARTTRACE();
1045 /////////////////////////////////////////////////////////////////////////////
1046
1047 GLXDrawable curdraw = backend::getCurrentDrawable();
1048 if((vw = WINHASH.find(NULL, curdraw)) != NULL)
1049 dpy = vw->getX11Display();
1050 else if(curdraw)
1051 dpy = GLXDHASH.getCurrentDisplay(curdraw);
1052
1053 /////////////////////////////////////////////////////////////////////////////
1054 STOPTRACE(); PRARGD(dpy); CLOSETRACE();
1055 /////////////////////////////////////////////////////////////////////////////
1056
1057 CATCH();
1058 return dpy;
1059}
1060
1061Display *glXGetCurrentDisplayEXT(void)
1062{

Callers 3

checkCurrentFunction · 0.85
checkBufferStateFunction · 0.85
glXGetCurrentDisplayEXTFunction · 0.85

Calls 4

getCurrentDrawableFunction · 0.85
getCurrentDisplayMethod · 0.80
findMethod · 0.45
getX11DisplayMethod · 0.45

Tested by

no test coverage detected