Commit 91af56e3 authored by Erik Faye-Lund 's avatar Erik Faye-Lund

mesa/main: fix up _mesa_has_rg_textures for gles2

rg-textures are supported in GLES 2.0 if EXT_texture_rg, so let's make
sure the enums are accepted.

Fixes: 510b6424 "mesa/main: do not allow rg-textures enums before gles3"
Bugzilla: Erik Faye-Lund 's avatarErik Faye-Lund <>
Tested-by: Mark Janes's avatarMark Janes <>
Reviewed-by: default avatarMarek Olšák <>
parent 5bf38bfb
......@@ -378,7 +378,8 @@ _mesa_has_packed_float(const struct gl_context *ctx)
static inline bool
_mesa_has_rg_textures(const struct gl_context *ctx)
return _mesa_has_ARB_texture_rg(ctx) || _mesa_is_gles3(ctx);
return _mesa_has_ARB_texture_rg(ctx) || _mesa_has_EXT_texture_rg(ctx) ||
static inline bool
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment