From f82601c4a8bab91d99d086c9dc158b84cd9423e4 Mon Sep 17 00:00:00 2001 From: Themaister Date: Mon, 8 Apr 2019 21:17:13 +0200 Subject: [PATCH] glcore: Fix GLES build. --- gfx/drivers/gl_core.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gfx/drivers/gl_core.c b/gfx/drivers/gl_core.c index 63528444a3..06bab7604e 100644 --- a/gfx/drivers/gl_core.c +++ b/gfx/drivers/gl_core.c @@ -2008,7 +2008,13 @@ static unsigned gl_core_wrap_type_to_enum(enum gfx_wrap_type type) switch (type) { case RARCH_WRAP_BORDER: +#ifdef HAVE_OPENGLES3 + /* GLES does not support CLAMP_TO_BORDER until GLES 3.2. + * It is a deprecated feature in general. */ + return GL_CLAMP_TO_EDGE; +#else return GL_CLAMP_TO_BORDER; +#endif case RARCH_WRAP_EDGE: return GL_CLAMP_TO_EDGE; case RARCH_WRAP_REPEAT: @@ -2016,7 +2022,7 @@ static unsigned gl_core_wrap_type_to_enum(enum gfx_wrap_type type) case RARCH_WRAP_MIRRORED_REPEAT: return GL_MIRRORED_REPEAT; default: - break; + break; } return 0;