YaGL: Set proper texture filtering for offscreen glEGLImageTargetTexture2DOES
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 27 May 2013 07:37:55 +0000 (11:37 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 27 May 2013 07:37:55 +0000 (11:37 +0400)
In offscreen case we need to setup proper texture filtering for
EGLImage texture before calling glTexImage2D

hw/yagl_apis/gles/yagl_host_gles_calls.c

index 2fa69ca..257f5b3 100644 (file)
@@ -1899,6 +1899,9 @@ bool yagl_host_glEGLUpdateOffscreenImageYAGL(struct yagl_client_image *image,
     ctx->driver->BindTexture(GL_TEXTURE_2D,
                              gles_image->tex_global_name);
 
+    ctx->driver->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
+    ctx->driver->TexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
+
     ctx->driver->TexImage2D(GL_TEXTURE_2D,
                             0,
                             GL_RGB,