[gtk/layout-manager-transform-demo: 3/9] gl: Use linear interpolation for offscreen buffers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/layout-manager-transform-demo: 3/9] gl: Use linear interpolation for offscreen buffers
- Date: Thu, 3 Sep 2020 10:47:12 +0000 (UTC)
commit 8147030de74f733c2ac370ca6d3745849508d2c1
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Sep 2 09:13:20 2020 -0400
gl: Use linear interpolation for offscreen buffers
This gives better rendering when transforms include
projective components.
gsk/gl/gskgldriver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/gl/gskgldriver.c b/gsk/gl/gskgldriver.c
index 8cd32d72ab..c0eb8b2719 100644
--- a/gsk/gl/gskgldriver.c
+++ b/gsk/gl/gskgldriver.c
@@ -604,7 +604,7 @@ gsk_gl_driver_create_render_target (GskGLDriver *self,
texture = create_texture (self, width, height);
gsk_gl_driver_bind_source_texture (self, texture->texture_id);
- gsk_gl_driver_init_texture_empty (self, texture->texture_id, GL_NEAREST, GL_NEAREST);
+ gsk_gl_driver_init_texture_empty (self, texture->texture_id, GL_LINEAR, GL_LINEAR);
glGenFramebuffers (1, &fbo_id);
glBindFramebuffer (GL_FRAMEBUFFER, fbo_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]