sim/video: Change pixel format to RGBA

This commit is contained in:
David A Roberts 2024-03-26 20:22:58 +10:00
parent 4389742a4f
commit 6735728340
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ bool fb_init(unsigned width, unsigned height, bool vsync, fb_handle_t *handle)
if (!handle->renderer)
return false;
handle->texture = SDL_CreateTexture(handle->renderer, SDL_PIXELFORMAT_BGRA32, SDL_TEXTUREACCESS_TARGET, width, height);
handle->texture = SDL_CreateTexture(handle->renderer, SDL_PIXELFORMAT_RGBA32, SDL_TEXTUREACCESS_TARGET, width, height);
if (!handle->texture)
return false;