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

Function eglInitialize

server/faker-egl.cpp:1122–1151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120
1121
1122EGLBoolean eglInitialize(EGLDisplay display, EGLint *major, EGLint *minor)
1123{
1124 EGLBoolean retval = EGL_FALSE;
1125
1126 TRY();
1127
1128 if(IS_EXCLUDED_EGLX(display))
1129 return _eglInitialize(display, major, minor);
1130
1131 GET_DISPLAY();
1132 DISABLE_FAKER();
1133
1134 /////////////////////////////////////////////////////////////////////////////
1135 OPENTRACE(eglInitialize); PRARGX(display); STARTTRACE();
1136 /////////////////////////////////////////////////////////////////////////////
1137
1138 eglxdpy->isInit = true;
1139 retval = EGL_TRUE;
1140 if(major) *major = fconfig.egl ? 1 : eglMajor;
1141 if(minor) *minor = fconfig.egl ? 5 : eglMinor;
1142
1143 /////////////////////////////////////////////////////////////////////////////
1144 STOPTRACE(); if(major) PRARGI(*major); if(minor) PRARGI(*minor);
1145 CLOSETRACE();
1146 /////////////////////////////////////////////////////////////////////////////
1147
1148 CATCH();
1149 ENABLE_FAKER();
1150 return retval;
1151}
1152
1153
1154EGLBoolean eglMakeCurrent(EGLDisplay display, EGLSurface draw, EGLSurface read,

Callers 8

readbackTestFunction · 0.85
visTestFunction · 0.85
multiThreadTestFunction · 0.85
offScreenTestFunction · 0.85
extensionQueryTestFunction · 0.85
mainFunction · 0.85
print_display_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected