[Piglit] [PATCH v2 9/16] util: rename piglit_gl_reinitialize_extensions->piglit_gl_invalidate_extensions

Dylan Baker dylan at pnwbakers.com
Fri Sep 30 21:17:42 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

---
 tests/util/piglit-framework-gl/piglit_wfl_framework.c | 3 ++-
 tests/util/piglit-util-gl.c                           | 2 +-
 tests/util/piglit-util-gl.h                           | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/util/piglit-framework-gl/piglit_wfl_framework.c b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
index d312ef9..5968459 100644
--- a/tests/util/piglit-framework-gl/piglit_wfl_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_wfl_framework.c
@@ -508,6 +508,7 @@ make_context_current_singlepass(struct piglit_wfl_framework *wfl_fw,
 	if (!ok)
 		goto fail;
 
+	piglit_gl_invalidate_extensions();
 	return true;
 
 fail:
@@ -520,7 +521,7 @@ fail:
 	wfl_fw->context = NULL;
 	wfl_fw->config = NULL;
 
-	piglit_gl_reinitialize_extensions();
+	piglit_gl_invalidate_extensions();
 
 	return false;
 }
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 75d634c..95eadd0 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -115,7 +115,7 @@ static void initialize_piglit_extension_support(void)
 	}
 }
 
-void piglit_gl_reinitialize_extensions()
+void piglit_gl_invalidate_extensions()
 {
 	if (gl_extensions != NULL) {
 		free(gl_extensions);
diff --git a/tests/util/piglit-util-gl.h b/tests/util/piglit-util-gl.h
index b416e50..78390c1 100644
--- a/tests/util/piglit-util-gl.h
+++ b/tests/util/piglit-util-gl.h
@@ -74,7 +74,7 @@ bool piglit_is_extension_supported(const char *name);
 /**
  * reinitialize the supported extension List.
  */
-void piglit_gl_reinitialize_extensions();
+void piglit_gl_invalidate_extensions();
 
 /**
  * \brief Convert a GL error to a string.
-- 
git-series 0.8.10


More information about the Piglit mailing list