From 6e1b52708ed44ed57f4364d8d2068979d21a4fa5 Mon Sep 17 00:00:00 2001 From: Jose Maria Casanova Crespo Date: Fri, 27 Jan 2017 13:30:37 +0100 Subject: [PATCH] Enable GL_ARB_transform_feedback_instanced in wrapper If OpenGL driver exposes GL_ARB_transform_feedback_instanced on core profile versions lower than 4.2, CTS tests about this extension are enabled but wrapper isn't exposing the extension interfaces. Affects: GL33-CTS.transform_feedback.api_errors_test GL40-CTS.transform_feedback.api_errors_test GL41-CTS.transform_feedback.api_errors_test Components: Framework, OpenGL VK-GL-CTS issue: 62 Change-Id: I1dbc63f009c8f7237db70783ca25832aa0a0e8e7 --- framework/opengl/wrapper/glwInitExtGL.inl | 6 ++++++ scripts/opengl/src_util.py | 1 + 2 files changed, 7 insertions(+) diff --git a/framework/opengl/wrapper/glwInitExtGL.inl b/framework/opengl/wrapper/glwInitExtGL.inl index bbef560..58f6de6 100644 --- a/framework/opengl/wrapper/glwInitExtGL.inl +++ b/framework/opengl/wrapper/glwInitExtGL.inl @@ -324,6 +324,12 @@ if (de::contains(extSet, "GL_ARB_transform_feedback3")) gl->getQueryIndexediv = (glGetQueryIndexedivFunc) loader->get("glGetQueryIndexediv"); } +if (de::contains(extSet, "GL_ARB_transform_feedback_instanced")) +{ + gl->drawTransformFeedbackInstanced = (glDrawTransformFeedbackInstancedFunc) loader->get("glDrawTransformFeedbackInstanced"); + gl->drawTransformFeedbackStreamInstanced = (glDrawTransformFeedbackStreamInstancedFunc) loader->get("glDrawTransformFeedbackStreamInstanced"); +} + if (de::contains(extSet, "GL_ARB_vertex_attrib_64bit")) { gl->getVertexAttribLdv = (glGetVertexAttribLdvFunc) loader->get("glGetVertexAttribLdv"); diff --git a/scripts/opengl/src_util.py b/scripts/opengl/src_util.py index 638c53e..90bc672 100644 --- a/scripts/opengl/src_util.py +++ b/scripts/opengl/src_util.py @@ -108,6 +108,7 @@ EXTENSIONS = [ 'GL_ARB_texture_view', 'GL_ARB_transform_feedback2', 'GL_ARB_transform_feedback3', + 'GL_ARB_transform_feedback_instanced', 'GL_ARB_transform_feedback_overflow_query', 'GL_ARB_vertex_array_bgra', 'GL_ARB_vertex_attrib_64bit', -- 2.7.4