diff --git a/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp b/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp index e0185e7bc632..9d49d907bc06 100755 --- a/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp +++ b/gfx/webrender_bindings/RenderD3D11TextureHostOGL.cpp @@ -65,6 +65,7 @@ RenderDXGITextureHostOGL::SetGLContext(gl::GLContext* aContext) // Release the texture handle in the previous gl context. DeleteTextureHandle(); mGL = aContext; + mGL->MakeCurrent(); } } @@ -291,6 +292,7 @@ RenderDXGIYCbCrTextureHostOGL::SetGLContext(gl::GLContext* aContext) // Release the texture handle in the previous gl context. DeleteTextureHandle(); mGL = aContext; + mGL->MakeCurrent(); } } diff --git a/gfx/webrender_bindings/RenderMacIOSurfaceTextureHostOGL.cpp b/gfx/webrender_bindings/RenderMacIOSurfaceTextureHostOGL.cpp index fcb192440201..b64dfde2d2e0 100644 --- a/gfx/webrender_bindings/RenderMacIOSurfaceTextureHostOGL.cpp +++ b/gfx/webrender_bindings/RenderMacIOSurfaceTextureHostOGL.cpp @@ -105,6 +105,7 @@ RenderMacIOSurfaceTextureHostOGL::SetGLContext(gl::GLContext* aContext) // release the texture handle in the previous gl context DeleteTextureHandle(); mGL = aContext; + mGL->MakeCurrent(); } }