[Mesa-dev] [PATCH] mesa: only expose GL_OES_read_format in ES1 contexts

Ilia Mirkin imirkin at alum.mit.edu
Sun Sep 13 00:14:06 PDT 2015


The functionality is actually available in ES2+ and at least GL 4.5, but
the extension itself is only spec'd against ES1, not desktop GL.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/mesa/main/extensions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 1f7d542..e3a61cc 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -320,7 +320,7 @@ static const struct extension extension_table[] = {
    { "GL_OES_point_size_array",                    o(dummy_true),                                   ES1,       2004 },
    { "GL_OES_point_sprite",                        o(ARB_point_sprite),                             ES1,       2004 },
    { "GL_OES_query_matrix",                        o(dummy_true),                                   ES1,       2003 },
-   { "GL_OES_read_format",                         o(dummy_true),                              GL | ES1,       2003 },
+   { "GL_OES_read_format",                         o(dummy_true),                                   ES1,       2003 },
    { "GL_OES_rgb8_rgba8",                          o(dummy_true),                                   ES1 | ES2, 2005 },
    { "GL_OES_single_precision",                    o(dummy_true),                                   ES1,       2003 },
    { "GL_OES_standard_derivatives",                o(OES_standard_derivatives),                           ES2, 2005 },
-- 
2.4.6



More information about the mesa-dev mailing list