all repos — mgba @ d3019c306f77434d90dd13e70fff0f69f31dfee4

mGBA Game Boy Advance Emulator

GBA Video: Ensure wait instead of flush when getting proxy pixels
Vicki Pfau vi@endrift.com
Wed, 02 Dec 2020 21:01:02 -0800
commit

d3019c306f77434d90dd13e70fff0f69f31dfee4

parent

f29eeac09ab004066860d74bc21632c77d75f2c7

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M src/gba/extra/proxy.csrc/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 {