summaryrefslogtreecommitdiff
path: root/progs/gallium/python/tests/texture_blit.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/gallium/python/tests/texture_blit.py')
-rwxr-xr-xprogs/gallium/python/tests/texture_blit.py5
1 files changed, 2 insertions, 3 deletions
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