Changeset 65497 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- Jan 28, 2017 6:18:17 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/egl.c
r63206 r65497 31 31 #include <stdio.h> 32 32 #include <stdlib.h> 33 #include <string.h> 33 34 34 35 #define EGL_ASSERT(expr) \ … … 149 150 { 150 151 Display *pDisplay; 151 int cError, cEvent, cMajor, cMinor;152 152 153 153 if (!testValidDisplay(hDisplay)) … … 162 162 pDisplay = g_pDefaultDisplay; 163 163 } 164 if (pDisplay && glXQueryExtension(pDisplay, &cError, &cEvent)) 165 if (glXQueryVersion(pDisplay, &cMajor, &cMinor)) 166 if (cMajor > 1 || (cMajor == 1 && cMinor >= 3)) 167 return (EGLDisplay) pDisplay; 164 if (pDisplay && !strcmp(glXGetClientString(pDisplay, GLX_VENDOR), "Chromium")) 165 return (EGLDisplay) pDisplay; 168 166 return EGL_NO_DISPLAY; 169 167 }
Note:
See TracChangeset
for help on using the changeset viewer.