diff options
author | Topi Pohjolainen <[email protected]> | 2013-03-27 15:32:21 +0200 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2013-08-02 08:56:03 +0300 |
commit | 55162e21640380bab6cb537ca6b937870be0fc9a (patch) | |
tree | 3cfb8872bb958d1d7ec88cb79eb71bf9921faf55 | |
parent | e8568a08030e0d79bd75dde57e65d01805eefe2a (diff) |
intel: do not create renderbuffers out of planar images
v2 (Chad): emit 'GL_INVALID_OPERATION' and description of error
Signed-off-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_fbo.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c index e746cb434e3..059b3eac492 100644 --- a/src/mesa/drivers/dri/i965/intel_fbo.c +++ b/src/mesa/drivers/dri/i965/intel_fbo.c @@ -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: |