summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/python
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-04-04 21:16:37 +0200
committerMichal Krol <[email protected]>2009-04-04 21:16:37 +0200
commit1bf6af141f0d50f5efb1c4e03819b875fab57905 (patch)
tree55f9491fd39e3dfeda984dca35718d96d7876bc3 /src/gallium/state_trackers/python
parenteb168e26aa63f11a47d70c4555cae30691a2cd57 (diff)
python/regress: Clean up driver clear() interface.
Diffstat (limited to 'src/gallium/state_trackers/python')
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py b/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py
index 9f6c0572630..d60fb38d1ae 100644
--- a/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py
@@ -122,7 +122,12 @@ def test(dev, name):
fb.nr_cbufs = 1
fb.set_cbuf(0, cbuf)
ctx.set_framebuffer(fb)
- ctx.surface_clear(cbuf, 0x80808080)
+ rgba = FloatArray(4);
+ rgba[0] = 0.5
+ rgba[1] = 0.5
+ rgba[2] = 0.5
+ rgba[3] = 0.5
+ ctx.clear(PIPE_CLEAR_COLOR, rgba, 0.0, 0)
# vertex shader
vs = Shader('''