From: Courtney Goeltzenleuchter Date: Thu, 4 Apr 2019 21:35:41 +0000 (-0600) Subject: check if getPlatformExtensionName is null X-Git-Tag: upstream/1.3.5~2140 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c5c2b0368a09c5a249a492f24fe36fc05ac7319;p=platform%2Fupstream%2FVK-GL-CTS.git check if getPlatformExtensionName is null nativeDisplay.getPlatformExtensionName will be null if the platform does not support platform extensions. Check for that prior to turning it into a string. Components: GL, ANGLE build Affects: dEQP-GLES2.functional.rasterization.primitives.line* VK-GL-CTS issue: 1722 Change-Id: Ic60c3ad8387009b00bcb3ecd74d2d5cd673dade8 --- diff --git a/framework/egl/egluUtil.cpp b/framework/egl/egluUtil.cpp index 13d7eba..82aeedc 100644 --- a/framework/egl/egluUtil.cpp +++ b/framework/egl/egluUtil.cpp @@ -250,6 +250,7 @@ EGLDisplay getDisplay (NativeDisplay& nativeDisplay) { const vector platformExts = eglu::getClientExtensions(egl); usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) && + nativeDisplay.getPlatformExtensionName() && de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName())); } @@ -327,6 +328,7 @@ EGLSurface createWindowSurface (NativeDisplay& nativeDisplay, NativeWindow& wind { const vector platformExts = eglu::getClientExtensions(egl); usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) && + nativeDisplay.getPlatformExtensionName() && de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName())); } @@ -384,6 +386,7 @@ EGLSurface createPixmapSurface (NativeDisplay& nativeDisplay, NativePixmap& pixm { const vector platformExts = eglu::getClientExtensions(egl); usePlatformExt = de::contains(platformExts.begin(), platformExts.end(), string("EGL_EXT_platform_base")) && + nativeDisplay.getPlatformExtensionName() && de::contains(platformExts.begin(), platformExts.end(), string(nativeDisplay.getPlatformExtensionName())); }