diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2015-01-24 03:53:48 +0800 |
---|---|---|
committer | Mauro Rossi <issor.oruam@gmail.com> | 2016-11-01 20:41:58 +0100 |
commit | 1dd244b7314e4803ecb3628e6501c6b24160b327 (patch) | |
tree | c8d8b733524adfb76a6cd0b9fa5589bf274d324c /src/mesa/drivers/dri/i965 | |
parent | e5848fad7d425f98d2e463927b2d4cb681d831e2 (diff) | |
download | external_mesa3d-1dd244b7314e4803ecb3628e6501c6b24160b327.zip external_mesa3d-1dd244b7314e4803ecb3628e6501c6b24160b327.tar.gz external_mesa3d-1dd244b7314e4803ecb3628e6501c6b24160b327.tar.bz2 |
android: a workaround for GL_INVALID_OPERATION (0x502) error
Inspired by the nice work of Paulo Sergio (pstglia):
"Bypass a check for external target enabled only for images
created with EGL_EXT_image_dma_buf_import - this makes
Android graphical components receive a GL_INVALID_OPERATION (0x502)."
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_tex_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c index 4454e53..ec0fe9a 100644 --- a/src/mesa/drivers/dri/i965/intel_tex_image.c +++ b/src/mesa/drivers/dri/i965/intel_tex_image.c @@ -392,6 +392,7 @@ intel_image_target_texture_2d(struct gl_context *ctx, GLenum target, if (image == NULL) return; +#ifndef ANDROID /* We support external textures only for EGLImages created with * EGL_EXT_image_dma_buf_import. We may lift that restriction in the future. */ @@ -401,6 +402,7 @@ intel_image_target_texture_2d(struct gl_context *ctx, GLenum target, "for images created with EGL_EXT_image_dma_buf_import"); return; } +#endif /* Disallow depth/stencil textures: we don't have a way to pass the * separate stencil miptree of a GL_DEPTH_STENCIL texture through. |