[Mesa-dev] [PATCH 66/70] Add GL_DEPTH_COMPONENT and GL_STENCIL_INDEX to array formats
Chris Wilson
chris at chris-wilson.co.uk
Fri Aug 7 13:14:10 PDT 2015
GL_DEPTH_COMPONENT and GL_STENCIL_INDEX are simple array formats of the
indiciated types, but were absent from the get_swizzle_from_format()
table causing them to be neglect and triggering
unreachable("Unsupported format").
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
src/mesa/main/glformats.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index c3fd734..71f43ec 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -2623,6 +2623,8 @@ get_swizzle_from_gl_format(GLenum format, uint8_t *swizzle)
set_swizzle(swizzle, 0, 0, 0, 5);
return true;
case GL_INTENSITY:
+ case GL_DEPTH_COMPONENT:
+ case GL_STENCIL_INDEX:
set_swizzle(swizzle, 0, 0, 0, 0);
return true;
default:
--
2.5.0
More information about the mesa-dev
mailing list