mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
mesa: Follow GL spec to draw DEPTH_COMPONENT pixels when
there's no depth buffer. Fix bug #11580
This commit is contained in:
parent
b0f681b458
commit
07ff7c2285
1 changed files with 1 additions and 2 deletions
|
|
@ -105,8 +105,7 @@ error_check_format_type(GLcontext *ctx, GLenum format, GLenum type,
|
|||
}
|
||||
break;
|
||||
case GL_DEPTH_COMPONENT:
|
||||
if ((drawing && !_mesa_dest_buffer_exists(ctx, format)) ||
|
||||
(!drawing && !_mesa_source_buffer_exists(ctx, format))) {
|
||||
if (!drawing && !_mesa_source_buffer_exists(ctx, format)) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"gl%sPixels(no depth buffer)", readDraw);
|
||||
return GL_TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue