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:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user