Texture cleanup
- Removed unneeded creation of texture in main() - Changed GUI RGB format to ARGB8888 (32-bit)
This commit is contained in:
parent
b06d5a6569
commit
474ef81aec
2 changed files with 3 additions and 11 deletions
10
src/main.cpp
10
src/main.cpp
|
@ -669,15 +669,7 @@ static int real_main2 (int argc, TCHAR **argv)
|
|||
check_error_sdl(renderer == nullptr, "Unable to create a renderer");
|
||||
|
||||
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "linear"); // make the scaled rendering look smoother.
|
||||
SDL_RenderSetLogicalSize(renderer, 800, 480);
|
||||
|
||||
texture = SDL_CreateTexture(renderer,
|
||||
SDL_PIXELFORMAT_RGB565,
|
||||
SDL_TEXTUREACCESS_STREAMING,
|
||||
800,
|
||||
480);
|
||||
check_error_sdl(texture == nullptr, "Unable to create texture");
|
||||
|
||||
|
||||
keyboard_settrans();
|
||||
|
||||
if (restart_config[0]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue