Commit 357c429b authored by Jonathan Backer's avatar Jonathan Backer Committed by Commit Bot

Ensure GL context current before calling GL

Bug: 1065901
Change-Id: If4cf2bcda93791651717a3627686e9b766a49a7d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2127513
Commit-Queue: Jonathan Backer <backer@chromium.org>
Commit-Queue: Peng Huang <penghuang@chromium.org>
Auto-Submit: Jonathan Backer <backer@chromium.org>
Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#754559}
parent bbfaa5f7
......@@ -103,7 +103,7 @@ gpu::ContextResult RasterCommandBufferStub::Initialize(
}
if (!shared_context_state->IsGLInitialized()) {
if (!shared_context_state->MakeCurrent(nullptr) ||
if (!shared_context_state->MakeCurrent(nullptr, true /* needs_gl */) ||
!shared_context_state->InitializeGL(
manager->gpu_preferences(),
base::MakeRefCounted<gles2::FeatureInfo>(
......
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