creado define para compilar sin shaders
This commit is contained in:
@@ -192,15 +192,14 @@ bool Director::initSDL()
|
||||
std::cout << "Warning: texture filtering not enabled!\n";
|
||||
}
|
||||
}
|
||||
#ifndef RASPI
|
||||
//if (options->video.shaders)
|
||||
if (!SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"))
|
||||
#ifndef NO_SHADERS
|
||||
if (!SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl"))
|
||||
{
|
||||
if (options->console)
|
||||
{
|
||||
if (options->console)
|
||||
{
|
||||
std::cout << "Warning: opengl not enabled!\n";
|
||||
}
|
||||
std::cout << "Warning: opengl not enabled!\n";
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// Crea la ventana
|
||||
int incW = 0;
|
||||
@@ -227,12 +226,9 @@ bool Director::initSDL()
|
||||
{
|
||||
flags = flags | SDL_RENDERER_PRESENTVSYNC;
|
||||
}
|
||||
#ifndef RASPI
|
||||
// La aceleración se activa según las opciones
|
||||
//if (options->video.shaders)
|
||||
{
|
||||
flags = flags | SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE;
|
||||
}
|
||||
#ifndef NO_SHADERS
|
||||
// La aceleración se activa según el define
|
||||
flags = flags | SDL_RENDERER_ACCELERATED | SDL_RENDERER_TARGETTEXTURE;
|
||||
#endif
|
||||
renderer = SDL_CreateRenderer(window, -1, flags);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user