sim/video: Change pixel format to RGBA
This commit is contained in:
parent
4389742a4f
commit
6735728340
|
@ -17,7 +17,7 @@ bool fb_init(unsigned width, unsigned height, bool vsync, fb_handle_t *handle)
|
||||||
if (!handle->renderer)
|
if (!handle->renderer)
|
||||||
return false;
|
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)
|
if (!handle->texture)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue