From 8c450d52692b66d325d91bed2ac06659c9d38e24 Mon Sep 17 00:00:00 2001 From: Wang Shuo Date: Thu, 2 Apr 2015 23:25:50 +0800 Subject: [PATCH] Ignore the judgement of dma_buf_imported during glEGLImageTargetTexture2DOES image->dma_buf_imported is not set during eglCreateImageKHR, but used as a judgement of image during glEGLImageTargetTexture2DOES. Signed-off-by: Wang Shuo --- src/mesa/drivers/dri/i965/intel_tex_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_tex_image.c b/src/mesa/drivers/dri/i965/intel_tex_image.c index 00bf9ce..699a906 100644 --- a/src/mesa/drivers/dri/i965/intel_tex_image.c +++ b/src/mesa/drivers/dri/i965/intel_tex_image.c @@ -328,7 +328,7 @@ intel_image_target_texture_2d(struct gl_context *ctx, GLenum target, return; } - if (target == GL_TEXTURE_EXTERNAL_OES && !image->dma_buf_imported) { + if (target == GL_TEXTURE_EXTERNAL_OES) { _mesa_error(ctx, GL_INVALID_OPERATION, "glEGLImageTargetTexture2DOES(external target is enabled only " "for images created with EGL_EXT_image_dma_buf_import"); -- 1.8.3.2