don't use the noise shader on GLES

This commit is contained in:
fgsfds 2020-06-10 00:58:44 +03:00
parent 735d032bdd
commit 33b4bd7f8d
1 changed files with 4 additions and 0 deletions

View File

@ -182,7 +182,11 @@ static struct ShaderProgram *gfx_opengl_create_and_load_new_shader(uint32_t shad
bool opt_alpha = (shader_id & SHADER_OPT_ALPHA) != 0; bool opt_alpha = (shader_id & SHADER_OPT_ALPHA) != 0;
bool opt_fog = (shader_id & SHADER_OPT_FOG) != 0; bool opt_fog = (shader_id & SHADER_OPT_FOG) != 0;
bool opt_texture_edge = (shader_id & SHADER_OPT_TEXTURE_EDGE) != 0; bool opt_texture_edge = (shader_id & SHADER_OPT_TEXTURE_EDGE) != 0;
#ifdef USE_GLES
bool opt_noise = false;
#else
bool opt_noise = (shader_id & SHADER_OPT_NOISE) != 0; bool opt_noise = (shader_id & SHADER_OPT_NOISE) != 0;
#endif
bool used_textures[2] = { 0, 0 }; bool used_textures[2] = { 0, 0 };
int num_inputs = 0; int num_inputs = 0;