At this point, the resident handles are already removed and
glMake{Texture,Image}HandleNonResidentARB() reported
INVALID_OPERATION errors because handles weren't resident.

Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
---
 tests/shaders/shader_runner.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index ccb2c25ae..933f97fac 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -3819,12 +3819,12 @@ piglit_display(void)
                /* Free our resources, useful for valgrinding. */
                free_subroutine_uniforms();
 
-               for (i = 0; i < ARRAY_SIZE(texture_bindings); i++)
-                       clear_texture_binding(i);
-
                for (i = 0; i < ARRAY_SIZE(resident_handles); i++)
                        clear_resident_handle(i);
 
+               for (i = 0; i < ARRAY_SIZE(texture_bindings); i++)
+                       clear_texture_binding(i);
+
                if (prog != 0) {
                        glDeleteProgram(prog);
                        glUseProgram(0);
-- 
2.13.0

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to