diff options
Diffstat (limited to 'xc/extras/Mesa/src/texstate.c')
-rw-r--r-- | xc/extras/Mesa/src/texstate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xc/extras/Mesa/src/texstate.c b/xc/extras/Mesa/src/texstate.c index db4031fcc..89db8520c 100644 --- a/xc/extras/Mesa/src/texstate.c +++ b/xc/extras/Mesa/src/texstate.c @@ -1362,6 +1362,9 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, *params = 0; else if (img->TexFormat->IntensityBits > 0) *params = img->TexFormat->IntensityBits; + else if (img->TexFormat->LuminanceBits > 0) + /* intensity probably stored as luminance-alpha texture */ + *params = MIN2(img->TexFormat->LuminanceBits, img->TexFormat->AlphaBits); else /* intensity probably stored as rgb texture */ *params = MIN2(img->TexFormat->RedBits, img->TexFormat->GreenBits); return; |