summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-01-28 21:13:18 +0100
committerMarek Olšák <[email protected]>2013-02-11 19:43:01 +0100
commit967b21df6a9b23bfe9f3324c3e41133e41417e94 (patch)
tree102218c4dc86ad66608677d194e5f4092783f1e6 /src/mesa/main/formats.c
parenta0510fa7737eaaaafffd9748f603cf0231e8321a (diff)
mesa: fill in Z32_FLOAT_X24S8 in _mesa_format_matches_format_and_type
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/formats.c')
-rw-r--r--src/mesa/main/formats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index 423e883e700..4598d65938e 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -3352,7 +3352,8 @@ _mesa_format_matches_format_and_type(gl_format gl_format,
return format == GL_DEPTH_COMPONENT && type == GL_FLOAT && !swapBytes;
case MESA_FORMAT_Z32_FLOAT_X24S8:
- return GL_FALSE;
+ return format == GL_DEPTH_STENCIL &&
+ type == GL_FLOAT_32_UNSIGNED_INT_24_8_REV && !swapBytes;
case MESA_FORMAT_XRGB4444_UNORM:
case MESA_FORMAT_XRGB1555_UNORM: