VirtualBox

Changeset 65498 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jan 28, 2017 6:22:45 PM (8 years ago)
Author:
vboxsync
Message:

bugref:8748: Additions/Graphics/Wayland: investigate EGLStreams support feasibility: better document a test done at eglGetDisplay() time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/egl.c

    r65497 r65498  
    135135static EGLBoolean testValidDisplay(EGLNativeDisplayType hDisplay)
    136136{
     137    void *pSymbol = dlsym(NULL, "gbm_create_device");
     138
    137139    if (hDisplay == EGL_DEFAULT_DISPLAY)
    138140        return EGL_TRUE;
     
    141143    /* This is the test that Mesa uses to see if this is a GBM "display".  Not
    142144     * 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)
    145147        return EGL_FALSE;
    146148    return EGL_TRUE;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette