gl renderer: Fix cairo node surface size in hidpi

This commit is contained in:
Timm Bäder 2017-12-09 09:25:47 +01:00
parent d9e135dcb5
commit b03f08960b

View File

@ -607,8 +607,8 @@ render_cairo_node (GskGLRenderer *self,
get_gl_scaling_filters (node, &gl_min_filter, &gl_mag_filter);
texture_id = gsk_gl_driver_create_texture (self->gl_driver,
node->bounds.size.width,
node->bounds.size.height);
node->bounds.size.width * self->scale_factor,
node->bounds.size.height * self->scale_factor);
gsk_gl_driver_bind_source_texture (self->gl_driver, texture_id);
gsk_gl_driver_init_texture_with_surface (self->gl_driver,
texture_id,