summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-14 10:59:43 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-14 11:51:47 +0800
commit8077986205ad1bf2a14f650c2067a74efe428f78 (patch)
treec2b66d37133a575fb9a026106b560a8bbfae8275 /src
parent542c26fa4f7212831234af5008cea1bf7593f30d (diff)
es/main: Report GL_OES_draw_texture only when enabled.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/es/main/specials_es1.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/es/main/specials_es1.c b/src/mesa/es/main/specials_es1.c
index 1bba8b1770..0792dcfa97 100644
--- a/src/mesa/es/main/specials_es1.c
+++ b/src/mesa/es/main/specials_es1.c
@@ -97,11 +97,12 @@ make_extension_string(const GLcontext *ctx, char *str)
len += append_extension(&str, "GL_OES_point_size_array");
len += append_extension(&str, "GL_OES_point_sprite");
- /* 1.1 optional extensions */
- len += append_extension(&str, "GL_OES_draw_texture");
/* 1.1 deprecated extensions */
len += append_extension(&str, "GL_OES_query_matrix");
+ if (ctx->Extensions.OES_draw_texture)
+ len += append_extension(&str, "GL_OES_draw_texture");
+
if (ctx->Extensions.EXT_blend_equation_separate)
len += append_extension(&str, "GL_OES_blend_equation_separate");
if (ctx->Extensions.EXT_blend_func_separate)