Skip to content

Commit

Permalink
Bug 1458264 - Reset UNPACK_SKIP vars when uploading zeros. - r=kvark
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: ILB6MqgnrXX
  • Loading branch information
kdashg authored and MrAlex94 committed Jul 4, 2018
1 parent 94e4255 commit ff1532e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dom/canvas/WebGLContextDraw.cpp
Expand Up @@ -222,9 +222,9 @@ WebGLContext::BindFakeBlack(uint32_t texUnit, TexTarget target, FakeBlackType fa
gl->fPixelStorei(LOCAL_GL_UNPACK_SKIP_ROWS, 0);
gl->fPixelStorei(LOCAL_GL_UNPACK_SKIP_IMAGES, 0);
}

fakeBlackTex = FakeBlackTexture::Create(gl, target, fakeBlack);

gl->fPixelStorei(LOCAL_GL_UNPACK_ALIGNMENT, mPixelStore_UnpackAlignment);
if (IsWebGL2()) {
gl->fPixelStorei(LOCAL_GL_UNPACK_SKIP_PIXELS, mPixelStore_UnpackSkipPixels);
Expand Down

0 comments on commit ff1532e

Please sign in to comment.