Asignada tecla F4 para activar/desactivar los shaders
This commit is contained in:
@@ -108,6 +108,7 @@ void Director::initInput()
|
||||
input->bindKey(input_window_dec_size, SDL_SCANCODE_F1);
|
||||
input->bindKey(input_window_inc_size, SDL_SCANCODE_F2);
|
||||
input->bindKey(input_window_fullscreen, SDL_SCANCODE_F3);
|
||||
input->bindKey(input_video_shaders, SDL_SCANCODE_F4);
|
||||
|
||||
// Mando - Movimiento del jugador
|
||||
input->bindGameControllerButton(input_up, SDL_CONTROLLER_BUTTON_DPAD_UP);
|
||||
@@ -169,7 +170,7 @@ bool Director::initSDL()
|
||||
}
|
||||
}
|
||||
|
||||
if (options->video.shaders)
|
||||
if (options->video.shaders || true)
|
||||
if (!SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"))
|
||||
{
|
||||
if (options->console)
|
||||
@@ -205,7 +206,7 @@ bool Director::initSDL()
|
||||
}
|
||||
|
||||
// La aceleración se activa según las opciones
|
||||
if (options->video.shaders)
|
||||
if (options->video.shaders || true)
|
||||
{
|
||||
flags = flags | SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user