WINTERMUTE: doFlip WA is also needed for 3D renderers

This commit is contained in:
Paweł Kołodziejski 2022-07-16 13:58:02 +02:00
parent a2a6867a1b
commit 134e412a00
No known key found for this signature in database
GPG key ID: 0BDADC9E74440FF7
3 changed files with 3 additions and 3 deletions

View file

@ -234,7 +234,7 @@ BaseImage *BaseRenderOpenGL3D::takeScreenshot() {
glReadPixels(_viewportRect.left, g_system->getHeight() - _viewportRect.bottom, _viewportRect.width(), _viewportRect.height(),
GL_RGBA, GL_UNSIGNED_BYTE, surface->getPixels());
flipVertical(surface);
Graphics::Surface *converted = surface->convertTo(Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0));
Graphics::Surface *converted = surface->convertTo(getPixelFormat());
screenshot->copyFrom(converted);
delete surface;
delete converted;