mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
added some missing formats in _mesa_source/dest_buffer_exists()
This commit is contained in:
parent
068062f997
commit
86042f53f2
1 changed files with 16 additions and 2 deletions
|
|
@ -643,12 +643,18 @@ _mesa_source_buffer_exists(GLcontext *ctx, GLenum format)
|
|||
|
||||
switch (format) {
|
||||
case GL_COLOR:
|
||||
case GL_RED:
|
||||
case GL_GREEN:
|
||||
case GL_BLUE:
|
||||
case GL_ALPHA:
|
||||
case GL_LUMINANCE:
|
||||
case GL_LUMINANCE_ALPHA:
|
||||
case GL_INTENSITY:
|
||||
case GL_RGB:
|
||||
case GL_BGR:
|
||||
case GL_RGBA:
|
||||
case GL_BGRA:
|
||||
case GL_ABGR_EXT:
|
||||
case GL_COLOR_INDEX:
|
||||
if (ctx->ReadBuffer->_ColorReadBuffer == NULL) {
|
||||
return GL_FALSE;
|
||||
|
|
@ -678,7 +684,8 @@ _mesa_source_buffer_exists(GLcontext *ctx, GLenum format)
|
|||
break;
|
||||
default:
|
||||
_mesa_problem(ctx,
|
||||
"Unexpected format 0x%x in _mesa_source_buffer_exists");
|
||||
"Unexpected format 0x%x in _mesa_source_buffer_exists",
|
||||
format);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -703,12 +710,18 @@ _mesa_dest_buffer_exists(GLcontext *ctx, GLenum format)
|
|||
|
||||
switch (format) {
|
||||
case GL_COLOR:
|
||||
case GL_RED:
|
||||
case GL_GREEN:
|
||||
case GL_BLUE:
|
||||
case GL_ALPHA:
|
||||
case GL_LUMINANCE:
|
||||
case GL_LUMINANCE_ALPHA:
|
||||
case GL_INTENSITY:
|
||||
case GL_RGB:
|
||||
case GL_BGR:
|
||||
case GL_RGBA:
|
||||
case GL_BGRA:
|
||||
case GL_ABGR_EXT:
|
||||
case GL_COLOR_INDEX:
|
||||
/* nothing special */
|
||||
break;
|
||||
|
|
@ -736,7 +749,8 @@ _mesa_dest_buffer_exists(GLcontext *ctx, GLenum format)
|
|||
break;
|
||||
default:
|
||||
_mesa_problem(ctx,
|
||||
"Unexpected format 0x%x in _mesa_source_buffer_exists");
|
||||
"Unexpected format 0x%x in _mesa_source_buffer_exists",
|
||||
format);
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue