When redrawing screen, read the last written frame
commit7be5215c084d14dde9f5cd98e733c3df2d1e55d4
authorIlari Liusvaara <ilariliusvaara@welho.com>
Tue, 23 May 2017 08:11:32 +0000 (23 11:11 +0300)
committerIlari Liusvaara <ilariliusvaara@welho.com>
Tue, 23 May 2017 08:11:32 +0000 (23 11:11 +0300)
treee2d38f3b165af51747447701f654a78a79af4bb0
parent8ac83048247b97482c3792b48bfa036e9f4e7599
When redrawing screen, read the last written frame

This should fix the bug with loadstates, where wrong screenshot was
displayed in certain race condition.
include/library/triplebuffer.hpp
src/core/framebuffer.cpp
src/library/triplebuffer.cpp