Graphics - Engine - Fix pause blur for new SDL

fix-squashed-planets
olokos 2023-02-06 17:53:56 +01:00
parent ec9607784c
commit f60c62f05d
1 changed files with 2 additions and 1 deletions

View File

@ -3599,7 +3599,8 @@ void CEngine::Capture3DScene()
// create SDL surface and final texture
ImageData image;
image.surface = SDL_CreateRGBSurfaceFrom(blured.get(), newWidth, newHeight, 32, 0, 0, 0, 0, 0xFF000000);
image.surface = SDL_CreateRGBSurfaceFrom(blured.get(), newWidth, newHeight,
32, 4 * newWidth, 0x000000FF, 0x0000FF00, 0x00FF0000, 0xFF000000);
TextureCreateParams params;
params.filter = TEX_FILTER_BILINEAR;