From 19211bb5b8fa406fde294ec84f814e3b7881c474 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 12 Apr 2010 15:08:05 +0900 Subject: progs/gallium/python: Try to fix most regressions. Not enough for retrace to work again though. --- progs/gallium/python/samples/tri.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'progs/gallium/python/samples/tri.py') diff --git a/progs/gallium/python/samples/tri.py b/progs/gallium/python/samples/tri.py index 8cc272db81..fed929d420 100644 --- a/progs/gallium/python/samples/tri.py +++ b/progs/gallium/python/samples/tri.py @@ -134,15 +134,15 @@ def test(dev): ctx.set_clip(clip) # framebuffer - cbuf = dev.texture_create( + cbuf = dev.resource_create( PIPE_FORMAT_B8G8R8X8_UNORM, width, height, - tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET, + bind=PIPE_BIND_RENDER_TARGET, ).get_surface() - zbuf = dev.texture_create( + zbuf = dev.resource_create( PIPE_FORMAT_Z32_UNORM, width, height, - tex_usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL, + bind=PIPE_BIND_DEPTH_STENCIL, ).get_surface() fb = Framebuffer() fb.width = width -- cgit v1.2.3