python: Don't use deprecated clear_value field.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Mar 2009 17:26:40 +0000 (18:26 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 30 Mar 2009 17:26:40 +0000 (18:26 +0100)
src/gallium/state_trackers/python/samples/tri.py

index 72e94560af46b13be5ada1482714b95688f0a782..ed72e4383bb044f0156748f17be59801c89b621b 100644 (file)
@@ -142,8 +142,7 @@ def test(dev):
     fb.nr_cbufs = 1
     fb.set_cbuf(0, _cbuf)
     ctx.set_framebuffer(fb)
-    _cbuf.clear_value = 0x00000000
-    ctx.surface_clear(_cbuf, _cbuf.clear_value)
+    ctx.surface_clear(_cbuf, 0x00000000)
     del _cbuf
     
     # vertex shader