From 76185ecad6c220824b9f9fa96a3323ce38b17d52 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 11 Jan 2010 13:55:24 +0000 Subject: python: Set PIPE_TEXTURE_USAGE_RENDER_TARGET instead of DISPLAY_TARGET. As the python state tracker is not integrated with window system an cannot present surfaces directly. --- src/gallium/state_trackers/python/samples/gs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/python/samples/gs.py') diff --git a/src/gallium/state_trackers/python/samples/gs.py b/src/gallium/state_trackers/python/samples/gs.py index 1ceead5f17..6cffe3fd06 100644 --- a/src/gallium/state_trackers/python/samples/gs.py +++ b/src/gallium/state_trackers/python/samples/gs.py @@ -136,7 +136,7 @@ def test(dev): cbuf = dev.texture_create( PIPE_FORMAT_X8R8G8B8_UNORM, width, height, - tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET, + tex_usage=PIPE_TEXTURE_USAGE_RENDER_TARGET, ).get_surface() zbuf = dev.texture_create( PIPE_FORMAT_Z16_UNORM, -- cgit v1.2.3