From 811e602954f3093e7fbfbcc464c3b3f1870876ed Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Thu, 1 Apr 2010 17:26:50 +0100 Subject: python/tests: Several cleanups. --- progs/gallium/python/tests/texture_blit.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'progs/gallium/python/tests/texture_blit.py') diff --git a/progs/gallium/python/tests/texture_blit.py b/progs/gallium/python/tests/texture_blit.py index 5ae0a7398d..385cf16cd5 100755 --- a/progs/gallium/python/tests/texture_blit.py +++ b/progs/gallium/python/tests/texture_blit.py @@ -555,6 +555,7 @@ def main(): random.seed(0xdead3eef) dev = Device() + ctx = dev.context_create() suite = TestSuite() targets = [ @@ -577,8 +578,6 @@ def main(): PIPE_TEX_FACE_NEG_Z, ] - ctx = dev.context_create() - try: n = int(sys.argv[1]) except: @@ -602,7 +601,7 @@ def main(): depth = 1 if target == PIPE_TEXTURE_CUBE: - face =random.choice(faces) + face = random.choice(faces) else: face = PIPE_TEX_FACE_POS_X -- cgit v1.2.3