Changeset 65498 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jan 28, 2017 6:22:45 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/egl.c
r65497 r65498 135 135 static EGLBoolean testValidDisplay(EGLNativeDisplayType hDisplay) 136 136 { 137 void *pSymbol = dlsym(NULL, "gbm_create_device"); 138 137 139 if (hDisplay == EGL_DEFAULT_DISPLAY) 138 140 return EGL_TRUE; … … 141 143 /* This is the test that Mesa uses to see if this is a GBM "display". Not 142 144 * very pretty, but since no one can afford to break Mesa it should be 143 * safe. Obviously we can't support GBM for now. */144 if ( *(void **)hDisplay == dlsym(NULL, "gbm_create_device"))145 * safe. We need this to detect when the X server tries to load us. */ 146 if (pSymbol != NULL && *(void **)hDisplay == pSymbol) 145 147 return EGL_FALSE; 146 148 return EGL_TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.