GBA Video: Ensure wait instead of flush when getting proxy pixels
Vicki Pfau vi@endrift.com
Wed, 02 Dec 2020 21:01:02 -0800
1 files changed,
1 insertions(+),
3 deletions(-)
jump to
M
src/gba/extra/proxy.c
→
src/gba/extra/proxy.c
@@ -329,10 +329,8 @@
static void GBAVideoProxyRendererGetPixels(struct GBAVideoRenderer* renderer, size_t* stride, const void** pixels) { struct GBAVideoProxyRenderer* proxyRenderer = (struct GBAVideoProxyRenderer*) renderer; if (proxyRenderer->logger->block && proxyRenderer->logger->wait) { - // Insert an extra item into the queue to make sure it gets flushed - mVideoLoggerRendererFlush(proxyRenderer->logger); + proxyRenderer->logger->wait(proxyRenderer->logger); proxyRenderer->logger->postEvent(proxyRenderer->logger, LOGGER_EVENT_GET_PIXELS); - mVideoLoggerRendererFlush(proxyRenderer->logger); *pixels = proxyRenderer->logger->pixelBuffer; *stride = proxyRenderer->logger->pixelStride; } else {