Bug 1793526 - Remove IsCurrent checks in webgl code. r=gfx-reviewers,lsalzman

Webgl uses mImplicitMakeCurrent these days, so don't worry about it
directly.

Differential Revision: https://phabricator.services.mozilla.com/D188524
This commit is contained in:
Kelsey Gilbert 2023-09-19 22:04:17 +00:00
parent 0c71a203fc
commit 5dfdf0bcda
2 changed files with 0 additions and 3 deletions

View File

@ -1061,7 +1061,6 @@ static bool ValidateReadPixelsFormatAndType(
////
MOZ_ASSERT(gl->IsCurrent());
const auto implPI = webgl->ValidImplementationColorReadPI(srcUsage);
if (pi == implPI) return true;

View File

@ -24,8 +24,6 @@ static GLenum DepthFormatForDepthStencilEmu(gl::GLContext* gl) {
}
static GLuint DoCreateRenderbuffer(gl::GLContext* gl) {
MOZ_ASSERT(gl->IsCurrent());
GLuint ret = 0;
gl->fGenRenderbuffers(1, &ret);
return ret;