summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Vorobiov <s.vorobiov@samsung.com>2014-06-02 09:50:54 +0400
committerStanislav Vorobiov <s.vorobiov@samsung.com>2014-06-02 09:52:19 +0400
commitee11c0ea80d50e2e67d9c5b830d59d0a9fc3714f (patch)
tree7fbcd436e8a2dcbb39d7fa5420896f25d3a02f55
parent3a1f7eee24defb6dba43b1eab723c25b1b8a5d2c (diff)
downloademulator-yagl-ee11c0ea80d50e2e67d9c5b830d59d0a9fc3714f.tar.gz
emulator-yagl-ee11c0ea80d50e2e67d9c5b830d59d0a9fc3714f.tar.bz2
emulator-yagl-ee11c0ea80d50e2e67d9c5b830d59d0a9fc3714f.zip
YaGL: Don't report GL_ARB_texture_rectangle support
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>
-rw-r--r--GLES_common/yagl_gles_context.c5
-rw-r--r--GLES_common/yagl_gles_context.h2
-rw-r--r--GLESv2/yagl_gles2_context.c5
3 files changed, 0 insertions, 12 deletions
diff --git a/GLES_common/yagl_gles_context.c b/GLES_common/yagl_gles_context.c
index 4d2a5c7..0e0f213 100644
--- a/GLES_common/yagl_gles_context.c
+++ b/GLES_common/yagl_gles_context.c
@@ -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;
diff --git a/GLES_common/yagl_gles_context.h b/GLES_common/yagl_gles_context.h
index c6f64ed..19e5266 100644
--- a/GLES_common/yagl_gles_context.h
+++ b/GLES_common/yagl_gles_context.h
@@ -159,8 +159,6 @@ struct yagl_gles_context
int texture_npot;
- int texture_rectangle;
-
int texture_filter_anisotropic;
int max_color_attachments;
diff --git a/GLESv2/yagl_gles2_context.c b/GLESv2/yagl_gles2_context.c
index a0715dc..87f44d3 100644
--- a/GLESv2/yagl_gles2_context.c
+++ b/GLESv2/yagl_gles2_context.c
@@ -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;
}