Fix compile error with some OpenGL dev headers
svn path=/trunk/KDE/kdebase/workspace/; revision=1140417
This commit is contained in:
parent
73a3e3ca2d
commit
63008bd807
1 changed files with 6 additions and 6 deletions
|
@ -1049,28 +1049,28 @@ static QString formatFramebufferStatus( GLenum status )
|
||||||
{
|
{
|
||||||
switch( status )
|
switch( status )
|
||||||
{
|
{
|
||||||
case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT:
|
case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT:
|
||||||
// An attachment is the wrong type / is invalid / has 0 width or height
|
// An attachment is the wrong type / is invalid / has 0 width or height
|
||||||
return "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT";
|
return "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT";
|
||||||
case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:
|
case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT:
|
||||||
// There are no images attached to the framebuffer
|
// There are no images attached to the framebuffer
|
||||||
return "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";
|
return "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT";
|
||||||
case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT:
|
case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT:
|
||||||
// Not all attached images have the same width and height
|
// Not all attached images have the same width and height
|
||||||
return "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT";
|
return "GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT";
|
||||||
case GL_FRAMEBUFFER_UNSUPPORTED:
|
case GL_FRAMEBUFFER_UNSUPPORTED_EXT:
|
||||||
// A format or the combination of formats of the attachments is unsupported
|
// A format or the combination of formats of the attachments is unsupported
|
||||||
return "GL_FRAMEBUFFER_UNSUPPORTED";
|
return "GL_FRAMEBUFFER_UNSUPPORTED";
|
||||||
case GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT:
|
case GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT:
|
||||||
// The color attachments don't have the same format
|
// The color attachments don't have the same format
|
||||||
return "GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT";
|
return "GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT";
|
||||||
case GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:
|
case GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT:
|
||||||
// The attachments don't have the same number of samples
|
// The attachments don't have the same number of samples
|
||||||
return "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE";
|
return "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE";
|
||||||
case GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER:
|
case GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT:
|
||||||
// The draw buffer is missing
|
// The draw buffer is missing
|
||||||
return "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER";
|
return "GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER";
|
||||||
case GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER:
|
case GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT:
|
||||||
// The read buffer is missing
|
// The read buffer is missing
|
||||||
return "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER";
|
return "GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER";
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue