mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
print UNDEFINED MODE over samples that are undefined in the GL spec
This commit is contained in:
parent
9b61162d43
commit
043654bbfb
1 changed files with 12 additions and 1 deletions
|
|
@ -587,7 +587,18 @@ static void drawSample( int x, int y, int w, int h,
|
|||
glShadeModel( GL_FLAT );
|
||||
glDisable( GL_TEXTURE_2D );
|
||||
|
||||
if ( displayLevelInfo ) {
|
||||
if ( envMode->mode == GL_DECAL &&
|
||||
(format->baseFormat == GL_ALPHA ||
|
||||
format->baseFormat == GL_LUMINANCE ||
|
||||
format->baseFormat == GL_LUMINANCE_ALPHA ||
|
||||
format->baseFormat == GL_INTENSITY)) {
|
||||
/* undefined format/mode combination */
|
||||
begin2D( w, h );
|
||||
drawStringOutline( "UNDEFINED MODE", 15, h / 2,
|
||||
labelLevelColor0, labelLevelColor1 );
|
||||
end2D();
|
||||
}
|
||||
else if ( displayLevelInfo ) {
|
||||
GLint width, height, border, components;
|
||||
GLint redSize, greenSize, blueSize, alphaSize;
|
||||
GLint luminanceSize, intensitySize;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue