Skip to content

Commit

Permalink
libretro: Fix a crash with video refresh.
Browse files Browse the repository at this point in the history
  • Loading branch information
宋文武 authored and 宋文武 committed Jan 15, 2025
1 parent e48d9d5 commit fa2918e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop_version/libretro/SDL_libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa2918e

Please sign in to comment.