python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.

More common. True fix would be to use whatever the screen supports though.
This commit is contained in:
José Fonseca
2009-07-15 15:37:04 +01:00
parent fdeb778990
commit c68f659be3

View File

@@ -139,7 +139,7 @@ def test(dev):
tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET, tex_usage=PIPE_TEXTURE_USAGE_DISPLAY_TARGET,
).get_surface() ).get_surface()
zbuf = dev.texture_create( zbuf = dev.texture_create(
PIPE_FORMAT_Z32_UNORM, PIPE_FORMAT_Z16_UNORM,
width, height, width, height,
tex_usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL, tex_usage=PIPE_TEXTURE_USAGE_DEPTH_STENCIL,
).get_surface() ).get_surface()