summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorPatrice Mandin <[email protected]>2009-07-22 22:25:36 +0200
committerPatrice Mandin <[email protected]>2009-07-22 22:26:08 +0200
commitb7042399fd0a1cf66f99340486c03374d15af36c (patch)
tree5f68ae173e79b1c5d04e04752bb09c0580b6abc2 /src/gallium
parentb129c55f428b37325094a3f0da55c337ee94e515 (diff)
nouveau: nv30: wrong variable for format
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv30/nv30_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_screen.c b/src/gallium/drivers/nv30/nv30_screen.c
index c8b40784b05..f8285e4455f 100644
--- a/src/gallium/drivers/nv30/nv30_screen.c
+++ b/src/gallium/drivers/nv30/nv30_screen.c
@@ -95,7 +95,7 @@ nv30_screen_surface_format_supported(struct pipe_screen *pscreen,
}
} else
if (tex_usage & PIPE_TEXTURE_USAGE_DEPTH_STENCIL) {
- switch (tex_usage) {
+ switch (format) {
case PIPE_FORMAT_Z24S8_UNORM:
case PIPE_FORMAT_Z24X8_UNORM:
case PIPE_FORMAT_Z16_UNORM: