Commit d7f3cc86 by Nicolas Capens

Unlock the graphics buffer before queuing it.

The buffer changes ownership after queuing it, so unlock it first. The decRef() gets removed in a subsequent patch. Bug b/34981145 Change-Id: I4710699af46a7cbde12e97bc444ad35747509b07 Reviewed-on: https://swiftshader-review.googlesource.com/8848Reviewed-by: 's avatarGreg Hartman <ghartman@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarGreg Hartman <ghartman@google.com>
parent 8ea247e9
...@@ -68,14 +68,14 @@ namespace sw ...@@ -68,14 +68,14 @@ namespace sw
if(buffer) if(buffer)
{ {
queueBuffer(nativeWindow, buffer, -1);
if(locked) if(locked)
{ {
locked = nullptr; locked = nullptr;
unlock(); unlock();
} }
queueBuffer(nativeWindow, buffer, -1);
buffer->common.decRef(&buffer->common); buffer->common.decRef(&buffer->common);
} }
} }
......
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