[Mesa-dev] [PATCH 8/8] intel: enable GL_OES_draw_texture

Chia-I Wu olvaffe at gmail.com
Tue Aug 30 22:46:39 PDT 2011


From: Chia-I Wu <olv at lunarg.com>

---
 src/mesa/drivers/dri/intel/intel_extensions_es.c |    1 +
 src/mesa/drivers/dri/intel/intel_tex.c           |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_extensions_es.c b/src/mesa/drivers/dri/intel/intel_extensions_es.c
index 2af616e..fdb6318 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions_es.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions_es.c
@@ -73,6 +73,7 @@ static const char *es1_extensions[] = {
    "GL_EXT_blend_equation_separate",
    "GL_EXT_blend_func_separate",
    "GL_EXT_blend_subtract",
+   "GL_OES_draw_texture",
    "GL_ARB_framebuffer_object",
    "GL_EXT_framebuffer_object",
    "GL_ARB_point_sprite",
diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c
index 4faa01a..5fdc29b 100644
--- a/src/mesa/drivers/dri/intel/intel_tex.c
+++ b/src/mesa/drivers/dri/intel/intel_tex.c
@@ -209,4 +209,5 @@ intelInitTextureFuncs(struct dd_function_table *functions)
    functions->FreeTextureImageBuffer = intel_free_texture_image_buffer;
    functions->MapTextureImage = intel_map_texture_image;
    functions->UnmapTextureImage = intel_unmap_texture_image;
+   functions->DrawTex = _mesa_meta_DrawTex;
 }
-- 
1.7.5.4



More information about the mesa-dev mailing list