Commit abee60f6 by Paul Thomson Committed by Commit Bot

Capture: Disable GL_CHROMIUM_bind_uniform_location

Some apps (possibly those that use Skia) use the extension GL_CHROMIUM_bind_uniform_location, which is implemented by ANGLE. This leads to traces that contain calls to functions from this extension, such as: glBindUniformLocationCHROMIUM. Such traces do not replay on native GLES drivers, as the extension is not available. The fix is to disable the GL_CHROMIUM_bind_uniform_location extension when capturing, so that apps do not use this extension. Bug: b/174256233 Change-Id: I8c6de9dc958147bcad053cbf89d8727b40f45fbe Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2574836 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarCody Northrop <cnorthrop@google.com> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent f42409e6
......@@ -3568,6 +3568,11 @@ void Context::initCaps()
<< std::endl;
mState.mExtensions.mapBufferRange = false;
mState.mExtensions.mapBufferOES = false;
INFO() << "Disabling GL_CHROMIUM_bind_uniform_location during capture, which is not "
"supported on native drivers"
<< std::endl;
mState.mExtensions.bindUniformLocation = false;
}
// Disable support for OES_get_program_binary
......
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