mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
intel: do not create renderbuffers out of planar images
v2 (Chad): emit 'GL_INVALID_OPERATION' and description of error Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
e8568a0803
commit
55162e2164
1 changed files with 7 additions and 0 deletions
|
|
@ -261,6 +261,13 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx,
|
|||
if (image == NULL)
|
||||
return;
|
||||
|
||||
if (image->planar_format && image->planar_format->nplanes > 1) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION,
|
||||
"glEGLImageTargetRenderbufferStorage(planar buffers are not "
|
||||
"supported as render targets.");
|
||||
return;
|
||||
}
|
||||
|
||||
/* __DRIimage is opaque to the core so it has to be checked here */
|
||||
switch (image->format) {
|
||||
case MESA_FORMAT_RGBA8888_REV:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue