summaryrefslogtreecommitdiff
path: root/src/gallium/tests/python/tests/texture_blit.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/tests/python/tests/texture_blit.py')
-rwxr-xr-xsrc/gallium/tests/python/tests/texture_blit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/tests/python/tests/texture_blit.py b/src/gallium/tests/python/tests/texture_blit.py
index 58706dab93..089d05c623 100755
--- a/src/gallium/tests/python/tests/texture_blit.py
+++ b/src/gallium/tests/python/tests/texture_blit.py
@@ -55,7 +55,7 @@ def tex_coords(texture, face, level, zslice):
[0.0, 1.0],
]
- if texture.target == PIPE_TEXTURE_2D:
+ if texture.target == PIPE_TEXTURE_2D or texture.target == PIPE_TEXTURE_RECT:
return [[s, t, 0.0] for s, t in st]
elif texture.target == PIPE_TEXTURE_3D:
depth = texture.get_depth(level)