Chromium Code Reviews
DescriptionUnset GL Api when releasing a context.
This allows for catching errors when making GL calls without a context
current.
Also make the current GL API a per-thread value which fixes potential
problems esp. when using virtual contexts (imagine using real GL
contexts on one thread while using virtual contexts on the GPU thread.
Both might now fight over g_current_gl_context).
Since the platform APIs will commonly fail if you try to make a context
current when it's already current on another thread, we should never
end up with one API current on multiple threads (as long as we reset
the GL api in all MakeCurrent failure paths, which this patch also does).
BUG=248957
Patch Set 1 #
Total comments: 1
Messages
Total messages: 2 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||