python/regress: Clean up driver clear() interface.
authorMichal Krol <michal@vmware.com>
Sat, 4 Apr 2009 19:16:37 +0000 (21:16 +0200)
committerMichal Krol <michal@vmware.com>
Sat, 4 Apr 2009 19:16:37 +0000 (21:16 +0200)
src/gallium/state_trackers/python/tests/regress/fragment-shader/fragment-shader.py

index 9f6c05726305ce30849f6d1e91f74dcdf1d6a730..d60fb38d1ae6c28201341c64a26d82baf2fccc9a 100644 (file)
@@ -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('''