Commit b77b8776 by Nicolas Capens

Set EGL_FRAMEBUFFER_TARGET_ANDROID on configs matching the framebuffer.

Only configs with formats that match the system's framebuffer format should advertised the EGL_FRAMEBUFFER_TARGET_ANDROID attribute. Bug 25390254 Change-Id: I81e1a0365e151ed7082e3315399748e93c531ccc Reviewed-on: https://swiftshader-review.googlesource.com/4185Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent aaec29d5
......@@ -19,6 +19,7 @@
#include <EGL/eglext.h>
#include <string.h>
#include <algorithm>
#include <vector>
......@@ -152,7 +153,7 @@ Config::Config(sw::Format displayFormat, EGLint minInterval, EGLint maxInterval,
mTransparentBlueValue = 0;
mRecordableAndroid = EGL_TRUE;
mFramebufferTargetAndroid = EGL_TRUE;
mFramebufferTargetAndroid = (displayFormat == renderTargetFormat) ? EGL_TRUE : EGL_FALSE;
}
EGLConfig Config::getHandle() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment