diff options
author | José Fonseca <[email protected]> | 2008-07-15 17:57:48 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-07-15 17:58:48 +0900 |
commit | 3392bcaaa823bd791e8d7e4c5a7ce013831899bb (patch) | |
tree | bf5846a60766f4b2bb6c87d38fc133e8d83f8009 /src/gallium/state_trackers/python/samples | |
parent | ee470020e17bc4999f3540fbad49fe645a4b914e (diff) |
python: Cleanup.
Diffstat (limited to 'src/gallium/state_trackers/python/samples')
-rw-r--r-- | src/gallium/state_trackers/python/samples/tri.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/state_trackers/python/samples/tri.py b/src/gallium/state_trackers/python/samples/tri.py index e5044a02458..36659229298 100644 --- a/src/gallium/state_trackers/python/samples/tri.py +++ b/src/gallium/state_trackers/python/samples/tri.py @@ -143,24 +143,16 @@ def test(dev): cbuf = dev.texture_create(PIPE_FORMAT_X8R8G8B8_UNORM, width, height, usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET) - zbuf = dev.texture_create(PIPE_FORMAT_X8Z24_UNORM, - width, height, - usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL) _cbuf = cbuf.get_surface(usage = PIPE_BUFFER_USAGE_GPU_READ|PIPE_BUFFER_USAGE_GPU_WRITE) - _zsbuf = zbuf.get_surface(usage = PIPE_BUFFER_USAGE_GPU_READ|PIPE_BUFFER_USAGE_GPU_WRITE) fb = Framebuffer() fb.width = width fb.height = height fb.num_cbufs = 1 fb.set_cbuf(0, _cbuf) - fb.set_zsbuf(_zsbuf) ctx.set_framebuffer(fb) _cbuf.clear_value = 0x00000000 - _zsbuf.clear_value = 0x00ffffff ctx.surface_clear(_cbuf, _cbuf.clear_value) - ctx.surface_clear(_zsbuf, _zsbuf.clear_value) del _cbuf - del _zsbuf # vertex shader vs = Shader(''' |