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

Function glXGetCurrentReadDrawable

server/faker-glx.cpp:1095–1117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093}
1094
1095GLXDrawable glXGetCurrentReadDrawable(void)
1096{
1097 faker::VirtualWin *vw; GLXDrawable read = 0;
1098
1099 if(faker::getGLXExcludeCurrent()) return _glXGetCurrentReadDrawable();
1100
1101 TRY();
1102
1103 /////////////////////////////////////////////////////////////////////////////
1104 OPENTRACE(glXGetCurrentReadDrawable); STARTTRACE();
1105 /////////////////////////////////////////////////////////////////////////////
1106
1107 read = backend::getCurrentReadDrawable();
1108 if((vw = WINHASH.find(NULL, read)) != NULL)
1109 read = vw->getX11Drawable();
1110
1111 /////////////////////////////////////////////////////////////////////////////
1112 STOPTRACE(); PRARGX(read); CLOSETRACE();
1113 /////////////////////////////////////////////////////////////////////////////
1114
1115 CATCH();
1116 return read;
1117}
1118
1119GLXDrawable glXGetCurrentReadDrawableSGI(void)
1120{

Callers 3

checkCurrentFunction · 0.85
checkBufferStateFunction · 0.85

Calls 3

getCurrentReadDrawableFunction · 0.85
getX11DrawableMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected