VirtualBox

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

bugref:8748: Additions/Graphics/Wayland: investigate EGLStreams support feasibility: simplify GLX presence check to just check that we are using Chromium. We do not need to wrap around anything else.

File:
1 edited

Legend:

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

    r63206 r65497  
    3131#include <stdio.h>
    3232#include <stdlib.h>
     33#include <string.h>
    3334
    3435#define EGL_ASSERT(expr) \
     
    149150{
    150151    Display *pDisplay;
    151     int cError, cEvent, cMajor, cMinor;
    152152
    153153    if (!testValidDisplay(hDisplay))
     
    162162        pDisplay = g_pDefaultDisplay;
    163163    }
    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;
    168166    return EGL_NO_DISPLAY;
    169167}
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