projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
036f581
)
gldriver: Quick workaround for filter mismatch
author
Benjamin Otte
<otte@redhat.com>
Thu, 16 Mar 2023 22:36:00 +0000
(23:36 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Thu, 16 Mar 2023 23:43:21 +0000
(
00:43
+0100)
We should really use texture views or samplers to handle this case for
shared textures, but this at least makes NEAREST not break.
gsk/gl/gskgldriver.c
patch
|
blob
|
history
diff --git
a/gsk/gl/gskgldriver.c
b/gsk/gl/gskgldriver.c
index 64382f40e6a25f8db9e286717cbc0a39df99baed..fced165505e54ac590dfad744074c3a40cea5a7f 100644
(file)
--- a/
gsk/gl/gskgldriver.c
+++ b/
gsk/gl/gskgldriver.c
@@
-733,7
+733,7
@@
gsk_gl_driver_load_texture (GskGLDriver *self,
format = GL_RGBA8;
- if (GDK_IS_GL_TEXTURE (texture))
+ if (GDK_IS_GL_TEXTURE (texture)
&& min_filter == GL_LINEAR && mag_filter == GL_LINEAR
)
{
GdkGLTexture *gl_texture = (GdkGLTexture *) texture;
GdkGLContext *texture_context = gdk_gl_texture_get_context (gl_texture);