diff options
author | 2023-05-08 23:48:42 +0000 | |
---|---|---|
committer | 2023-05-08 23:48:42 +0000 | |
commit | 0bc64a80291111ad9356377e7247acdf77325e75 (patch) | |
tree | 141376861ab10c7e1876098c2ea9da79301635a6 | |
parent | b69e9884fc1707141b21dbe1b67214e956e6f4a7 (diff) |
Fix the missing extension EGL_ANDROID_image_native_buffer
In http://ag/22040002, EGL_ANDROID_get_frame_timestamps
is conditionally added to the mExtensionString. A space
at the end of the extension name is mandatory, because
we use ' ' or '\0' as an indicator when parsing the
mExtensionString to find each individual extension name.
Bug: b/269060366
Bug: b/280016556
Test: m; atest android.hardware.nativehardware.cts.AHardwareBufferNativeTests
Change-Id: Ie8ddc3018c37d77167b95210d89c7e7f7e6e69e7
-rw-r--r-- | opengl/libs/EGL/egl_display.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opengl/libs/EGL/egl_display.cpp b/opengl/libs/EGL/egl_display.cpp index c2c856e22a..6593c1bb16 100644 --- a/opengl/libs/EGL/egl_display.cpp +++ b/opengl/libs/EGL/egl_display.cpp @@ -326,10 +326,10 @@ EGLBoolean egl_display_t::initialize(EGLint* major, EGLint* minor) { // device's present timestamps are reliable (which may not be the case on emulators). if (cnx->useAngle) { if (android::base::GetBoolProperty("service.sf.present_timestamp", false)) { - mExtensionString.append("EGL_ANDROID_get_frame_timestamps"); + mExtensionString.append("EGL_ANDROID_get_frame_timestamps "); } } else { - mExtensionString.append("EGL_ANDROID_get_frame_timestamps"); + mExtensionString.append("EGL_ANDROID_get_frame_timestamps "); } hasColorSpaceSupport = findExtension(disp.queryString.extensions, "EGL_KHR_gl_colorspace"); |