Commit 87bb10ab authored by penghu's avatar penghu Committed by Commit bot

Call 'InitializeDynamicBindings()' before gl calls.

Some gl functions have not been bound,if no context created before.

BUG=

Review-Url: https://codereview.chromium.org/2273483004
Cr-Commit-Position: refs/heads/master@{#415533}
parent 10044bb3
...@@ -60,8 +60,9 @@ bool GLNonOwnedContext::Initialize(GLSurface* compatible_surface, ...@@ -60,8 +60,9 @@ bool GLNonOwnedContext::Initialize(GLSurface* compatible_surface,
} }
bool GLNonOwnedContext::MakeCurrent(GLSurface* surface) { bool GLNonOwnedContext::MakeCurrent(GLSurface* surface) {
SetCurrent(surface);
SetRealGLApi(); SetRealGLApi();
SetCurrent(surface);
InitializeDynamicBindings();
return true; return true;
} }
......
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