Commit 235a6ab5 by Jamie Madill

Fix regression with BufferStorage11 and latest storage.

With our fix to huge buffer allocations, an extra check was preventing pixel pack from running on the first try. BUG=angle:511 Change-Id: Idabafe4e204ad3b7bf2010595dc455affe93dae0 Reviewed-on: https://chromium-review.googlesource.com/198825Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarShannon Woods <shannonwoods@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent b69d39ba
......@@ -389,7 +389,7 @@ void BufferStorage11::packPixels(ID3D11Texture2D *srcTexture, UINT srcSubresourc
TypedBufferStorage11 *latestStorage = getLatestStorage();
if (packStorage && latestStorage)
if (packStorage)
{
packStorage->packPixels(srcTexture, srcSubresource, params);
packStorage->setDataRevision(latestStorage ? latestStorage->getDataRevision() + 1 : 1);
......@@ -474,6 +474,7 @@ void *BufferStorage11::map(GLbitfield access)
ASSERT(!mMappedStorage);
TypedBufferStorage11 *latestStorage = getLatestStorage();
ASSERT(latestStorage);
if (latestStorage->getUsage() == BUFFER_USAGE_PIXEL_PACK ||
latestStorage->getUsage() == BUFFER_USAGE_STAGING)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment