YaGL: Don't report GL_ARB_texture_rectangle support 41/22341/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 2 Jun 2014 05:50:54 +0000 (09:50 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 2 Jun 2014 05:52:19 +0000 (09:52 +0400)
We don't support GL_ARB_texture_rectangle, so don't report
it in extension string

Change-Id: Ib341b3cff3bd3ea70a5c70d6b3b5557d0c68d390
Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
GLES_common/yagl_gles_context.c
GLES_common/yagl_gles_context.h
GLESv2/yagl_gles2_context.c

index 4d2a5c78e332d4f0427e02d1d2bf7b1c7c6ebfa8..0e0f213da8ec51230ae2986064572e7002cf1594 100644 (file)
@@ -301,13 +301,8 @@ void yagl_gles_context_prepare(struct yagl_gles_context *ctx,
 
     if (yagl_get_host_gl_version() > yagl_gl_2) {
         ctx->packed_depth_stencil = 1;
-        ctx->texture_rectangle = 1;
     } else {
         ctx->packed_depth_stencil = (strstr(extensions, "GL_EXT_packed_depth_stencil ") != NULL);
-
-        ctx->texture_rectangle = (strstr(extensions, "GL_NV_texture_rectangle ") != NULL) ||
-                                 (strstr(extensions, "GL_EXT_texture_rectangle ") != NULL) ||
-                                 (strstr(extensions, "GL_ARB_texture_rectangle ") != NULL);
     }
 
     ctx->texture_npot = 1;
index c6f64ed742625b928cdc4e1ec2645bbd8a82ae51..19e52663988426dfe598bbc02163c9054e5ea15a 100644 (file)
@@ -159,8 +159,6 @@ struct yagl_gles_context
 
     int texture_npot;
 
-    int texture_rectangle;
-
     int texture_filter_anisotropic;
 
     int max_color_attachments;
index a0715dc4f0bb656867da6841c7d9231822d80157..87f44d3bc2ba2848929e8cae8655b74a8e4bc6cf 100644 (file)
@@ -56,7 +56,6 @@ static const GLchar *unpack_subimage_ext = "GL_EXT_unpack_subimage";
 static const GLchar *egl_sync_ext = "GL_OES_EGL_sync";
 static const GLchar *packed_depth_stencil_ext = "GL_OES_packed_depth_stencil";
 static const GLchar *texture_npot_ext = "GL_OES_texture_npot";
-static const GLchar *texture_rectangle_ext = "GL_ARB_texture_rectangle";
 static const GLchar *texture_filter_anisotropic_ext = "GL_EXT_texture_filter_anisotropic";
 static const GLchar *vertex_array_object_ext = "GL_OES_vertex_array_object";
 static const GLchar *texture_half_float_ext = "GL_OES_texture_half_float";
@@ -343,10 +342,6 @@ const GLchar **yagl_gles2_context_get_extensions(struct yagl_gles2_context *ctx,
         extensions[i++] = texture_npot_ext;
     }
 
-    if (ctx->base.texture_rectangle) {
-        extensions[i++] = texture_rectangle_ext;
-    }
-
     if (ctx->base.texture_filter_anisotropic) {
         extensions[i++] = texture_filter_anisotropic_ext;
     }