libretro: Fix a crash with video refresh.

This commit is contained in:
宋文武 2024-11-20 20:40:43 +08:00 committed by 宋文武
parent e48d9d5cd2
commit fa2918e2d0

View file

@ -66,7 +66,7 @@ CreateWindowFramebuffer(SDL_VideoDevice* device,
/* Create a new one */
SDL_GetWindowSizeInPixels(window, &w, &h);
_surface = SDL_CreateRGBSurfaceWithFormat(0, w, h, 0, surface_format);
_surface_real = SDL_CreateRGBSurfaceWithFormat(0, w, h, 0, surface_format);
_surface_real = SDL_CreateRGBSurfaceWithFormat(0, 320, 240, 0, surface_format);
if (!_surface_real) {
return -1;
}