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

Function glXGetCurrentDrawable

server/faker-glx.cpp:1071–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069// the window ID instead of the GLX drawable ID.
1070
1071GLXDrawable glXGetCurrentDrawable(void)
1072{
1073 faker::VirtualWin *vw; GLXDrawable draw = 0;
1074
1075 if(faker::getGLXExcludeCurrent()) return _glXGetCurrentDrawable();
1076
1077 TRY();
1078
1079 /////////////////////////////////////////////////////////////////////////////
1080 OPENTRACE(glXGetCurrentDrawable); STARTTRACE();
1081 /////////////////////////////////////////////////////////////////////////////
1082
1083 draw = backend::getCurrentDrawable();
1084 if((vw = WINHASH.find(NULL, draw)) != NULL)
1085 draw = vw->getX11Drawable();
1086
1087 /////////////////////////////////////////////////////////////////////////////
1088 STOPTRACE(); PRARGX(draw); CLOSETRACE();
1089 /////////////////////////////////////////////////////////////////////////////
1090
1091 CATCH();
1092 return draw;
1093}
1094
1095GLXDrawable glXGetCurrentReadDrawable(void)
1096{

Callers 2

checkCurrentFunction · 0.85
checkBufferStateFunction · 0.85

Calls 3

getCurrentDrawableFunction · 0.85
getX11DrawableMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected