Bug 1250710 - Update usages of ScopedPackAlignment. - r=jrmuizel
MozReview-Commit-ID: DgngFxBu8kn
This commit is contained in:
@@ -309,7 +309,7 @@ TexClientFromReadback(SharedSurface* src, ClientIPCAllocator* allocator,
|
||||
|
||||
MOZ_ASSERT(texClient);
|
||||
if (!texClient)
|
||||
return nullptr;
|
||||
return nullptr;
|
||||
|
||||
// With a texClient, we can lock for writing.
|
||||
TextureClientAutoLock autoLock(texClient, OpenMode::OPEN_WRITE);
|
||||
@@ -324,7 +324,7 @@ TexClientFromReadback(SharedSurface* src, ClientIPCAllocator* allocator,
|
||||
auto height = src->mSize.height;
|
||||
|
||||
{
|
||||
ScopedPackAlignment autoAlign(gl, 4);
|
||||
ScopedPackState scopedPackState(gl);
|
||||
|
||||
MOZ_ASSERT(mapped.stride/4 == mapped.size.width);
|
||||
gl->raw_fReadPixels(0, 0, width, height, readFormat, readType, mapped.data);
|
||||
|
||||
Reference in New Issue
Block a user