mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
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:
parent
0c71a203fc
commit
5dfdf0bcda
@ -1061,7 +1061,6 @@ static bool ValidateReadPixelsFormatAndType(
|
||||
|
||||
////
|
||||
|
||||
MOZ_ASSERT(gl->IsCurrent());
|
||||
const auto implPI = webgl->ValidImplementationColorReadPI(srcUsage);
|
||||
if (pi == implPI) return true;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user