diff options
Diffstat (limited to 'src/egl/main/eglglvnd.c')
-rw-r--r-- | src/egl/main/eglglvnd.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/egl/main/eglglvnd.c b/src/egl/main/eglglvnd.c index 6b984ed6c28..81fdb4508cb 100644 --- a/src/egl/main/eglglvnd.c +++ b/src/egl/main/eglglvnd.c @@ -24,15 +24,8 @@ __eglGLVNDQueryString(EGLDisplay dpy, EGLenum name) static const char * __eglGLVNDGetVendorString(int name) { - if (name == __EGL_VENDOR_STRING_PLATFORM_EXTENSIONS) { - const char *str = _eglGlobal.PlatformExtensionString; - // The platform extension string may have a leading space. If it does, - // then skip over it. - while (*str == ' ') { - str++; - } - return str; - } + if (name == __EGL_VENDOR_STRING_PLATFORM_EXTENSIONS) + return _eglGlobal.PlatformExtensionString; return NULL; } |