From 33b4bd7f8d18ada3d771d2ec27965e23931184b5 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 10 Jun 2020 00:58:44 +0300 Subject: [PATCH] don't use the noise shader on GLES --- src/pc/gfx/gfx_opengl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pc/gfx/gfx_opengl.c b/src/pc/gfx/gfx_opengl.c index c8ef6b81..f506631e 100644 --- a/src/pc/gfx/gfx_opengl.c +++ b/src/pc/gfx/gfx_opengl.c @@ -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_fog = (shader_id & SHADER_OPT_FOG) != 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; +#endif bool used_textures[2] = { 0, 0 }; int num_inputs = 0;