python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 15 Jul 2009 14:37:04 +0000 (15:37 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 15 Jul 2009 15:02:39 +0000 (16:02 +0100)
More common. True fix would be to use whatever the screen supports though.

src/gallium/state_trackers/python/samples/tri.py

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