зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1427668 - Disable MakeCurrent TLS for ANGLE for now. - r=daoshengmu
MozReview-Commit-ID: HzKKivtXeHX
This commit is contained in:
Родитель
8ab9a9aa21
Коммит
8fc8584d67
|
@ -125,6 +125,7 @@ is_power_of_two(int v)
|
|||
static void
|
||||
DestroySurface(EGLSurface oldSurface) {
|
||||
if (oldSurface != EGL_NO_SURFACE) {
|
||||
// TODO: This breaks TLS MakeCurrent caching.
|
||||
sEGLLibrary.fMakeCurrent(EGL_DISPLAY(),
|
||||
EGL_NO_SURFACE, EGL_NO_SURFACE,
|
||||
EGL_NO_CONTEXT);
|
||||
|
@ -227,7 +228,7 @@ GLContextEGLFactory::Create(EGLNativeWindowType aWindow,
|
|||
GLContextEGL::GLContextEGL(CreateContextFlags flags, const SurfaceCaps& caps,
|
||||
bool isOffscreen, EGLConfig config, EGLSurface surface,
|
||||
EGLContext context)
|
||||
: GLContext(flags, caps, nullptr, isOffscreen, sEGLLibrary.IsANGLE())
|
||||
: GLContext(flags, caps, nullptr, isOffscreen, false)
|
||||
, mConfig(config)
|
||||
, mSurface(surface)
|
||||
, mContext(context)
|
||||
|
|
Загрузка…
Ссылка в новой задаче