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

Function eglGetCurrentDisplay

server/faker-egl.cpp:757–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755
756
757EGLDisplay eglGetCurrentDisplay(void)
758{
759 EGLDisplay display = 0;
760
761 TRY();
762
763 if(faker::getEGLExcludeCurrent() || !faker::getEGLXContextCurrent())
764 return _eglGetCurrentDisplay();
765
766 DISABLE_FAKER();
767
768 /////////////////////////////////////////////////////////////////////////////
769 OPENTRACE(eglGetCurrentDisplay); STARTTRACE();
770 /////////////////////////////////////////////////////////////////////////////
771
772 display = (EGLDisplay)faker::getCurrentEGLXDisplay();
773
774 /////////////////////////////////////////////////////////////////////////////
775 STOPTRACE(); PRARGX(display); CLOSETRACE();
776 /////////////////////////////////////////////////////////////////////////////
777
778 CATCH();
779 ENABLE_FAKER();
780 return display;
781}
782
783
784EGLSurface eglGetCurrentSurface(EGLint readdraw)

Callers 2

checkCurrentFunction · 0.85
checkReadbackStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected