<div dir="ltr"><div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Dec 4, 2018 at 6:51 AM Erik Faye-Lund <<a href="mailto:erik.faye-lund@collabora.com">erik.faye-lund@collabora.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">rg-textures are supported in GLES 2.0 if EXT_texture_rg, so let's make<br>
sure the enums are accepted.<br>
<br>
Fixes: 510b6424607 "mesa/main: do not allow rg-textures enums before gles3"<br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=108936" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=108936</a><br>
Signed-off-by: Erik Faye-Lund <<a href="mailto:erik.faye-lund@collabora.com" target="_blank">erik.faye-lund@collabora.com</a>><br>
---<br>
Whoops, seems I missed an extension to enable RG-textures. Sorry for the<br>
breakage!<br>
<br>
src/mesa/main/context.h | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/main/context.h b/src/mesa/main/context.h<br>
index cdda8cf2012..7de10e9924b 100644<br>
--- a/src/mesa/main/context.h<br>
+++ b/src/mesa/main/context.h<br>
@@ -378,7 +378,8 @@ _mesa_has_packed_float(const struct gl_context *ctx)<br>
static inline bool<br>
_mesa_has_rg_textures(const struct gl_context *ctx)<br>
{<br>
- return _mesa_has_ARB_texture_rg(ctx) || _mesa_is_gles3(ctx);<br>
+ return _mesa_has_ARB_texture_rg(ctx) || _mesa_has_EXT_texture_rg(ctx) ||<br>
+ _mesa_is_gles3(ctx);<br>
}<br>
<br>
static inline bool<br>
-- <br>
2.19.2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>