Skip to content

Commit

Permalink
proper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin committed Nov 27, 2024
1 parent 8af9754 commit 090a8ca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/i_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1712,14 +1712,15 @@ static void CreateSurfaces(int w, int h)
V_RestoreBuffer();

// FIXME
// if (argbbuffer != NULL)
// {
// SDL_DestroySurface(argbbuffer);
// }
if (argbbuffer != NULL)
{
SDL_DestroySurface(argbbuffer);
}

// [FG] create intermediate ARGB frame buffer

argbbuffer = SDL_CreateSurface(w, h, SDL_PIXELFORMAT_ARGB8888);
argbbuffer = SDL_CreateSurfaceFrom(w, h, SDL_PIXELFORMAT_ARGB8888,
NULL, w * 4);

if (texture != NULL)
{
Expand Down

0 comments on commit 090a8ca

Please sign in to comment.