Commit a2936aaf by Geoff Lang Committed by Commit Bot

D3D11: Don't yeild after a successful call to GetData during glFinish.

ScheduleYield was always called after GetData regardless of it's result. This meant that we would successfully get the data but still sleep the thread BUG=667979 Change-Id: Iecba0ae5cacef64a1080bbd89ce352bc4f281359 Reviewed-on: https://chromium-review.googlesource.com/437636Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent df68a6f0
......@@ -1142,8 +1142,11 @@ gl::Error Renderer11::finish()
result);
}
// Keep polling, but allow other threads to do something useful first
ScheduleYield();
if (result == S_FALSE)
{
// Keep polling, but allow other threads to do something useful first
ScheduleYield();
}
if (testDeviceLost())
{
......
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