forked from AuroraMiddleware/gtk
gl: Use linear scaling for atlases
This commit is contained in:
parent
efc31161f0
commit
4020399439
@ -366,7 +366,7 @@ gsk_gl_glyph_cache_get_glyph_image (GskGLGlyphCache *self,
|
||||
|
||||
if (atlas->image.texture_id == 0)
|
||||
{
|
||||
gsk_gl_image_create (&atlas->image, self->gl_driver, atlas->width, atlas->height, GL_NEAREST, GL_NEAREST);
|
||||
gsk_gl_image_create (&atlas->image, self->gl_driver, atlas->width, atlas->height, GL_LINEAR, GL_LINEAR);
|
||||
gdk_gl_context_label_object_printf (gsk_gl_driver_get_gl_context (self->gl_driver),
|
||||
GL_TEXTURE, atlas->image.texture_id,
|
||||
"Glyph atlas %d", atlas->image.texture_id);
|
||||
|
@ -181,7 +181,7 @@ gsk_gl_icon_cache_lookup_or_add (GskGLIconCache *self,
|
||||
/* No atlas has enough space, so create a new one... */
|
||||
atlas = g_malloc (sizeof (GskGLTextureAtlas));
|
||||
gsk_gl_texture_atlas_init (atlas, ATLAS_SIZE, ATLAS_SIZE);
|
||||
gsk_gl_image_create (&atlas->image, self->gl_driver, atlas->width, atlas->height, GL_NEAREST, GL_NEAREST);
|
||||
gsk_gl_image_create (&atlas->image, self->gl_driver, atlas->width, atlas->height, GL_LINEAR, GL_LINEAR);
|
||||
/* Pack it onto that one, which surely has enought space... */
|
||||
gsk_gl_texture_atlas_pack (atlas, twidth + 2, theight + 2, &packed_x, &packed_y);
|
||||
packed_x += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user