mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
gl renderer: Round size up when rendering to a texture
Both the clip we use and the viewport we set should contain the entire texture size and not potentially clip the last pixel.
This commit is contained in:
parent
e54ce8f328
commit
f9041230c6
@ -2458,8 +2458,8 @@ add_offscreen_ops (GskGLRenderer *self,
|
||||
guint flags)
|
||||
{
|
||||
const float scale = ops_get_scale (builder);
|
||||
const float width = bounds->size.width * scale;
|
||||
const float height = bounds->size.height * scale;
|
||||
const float width = ceilf (bounds->size.width * scale);
|
||||
const float height = ceilf (bounds->size.height * scale);
|
||||
const float dx = builder->dx;
|
||||
const float dy = builder->dy;
|
||||
int render_target;
|
||||
|
Loading…
Reference in New Issue
Block a user