Commit f16c91af by Nicolas Capens

Use the correct internal format for swaps.

Change-Id: If0aedc86a1f6492eb8174744f9ca6c3eea24e729 Reviewed-on: https://swiftshader-review.googlesource.com/3090Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 8aaf6712
...@@ -207,7 +207,7 @@ void Surface::swap() ...@@ -207,7 +207,7 @@ void Surface::swap()
if(backBuffer) if(backBuffer)
{ {
void *source = backBuffer->lockInternal(0, 0, 0, sw::LOCK_READONLY, sw::PUBLIC); void *source = backBuffer->lockInternal(0, 0, 0, sw::LOCK_READONLY, sw::PUBLIC);
frameBuffer->flip(source, backBuffer->getInternalFormat()); frameBuffer->flip(source, backBuffer->Surface::getInternalFormat());
backBuffer->unlockInternal(); backBuffer->unlockInternal();
checkForResize(); checkForResize();
......
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