mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-13 04:10:13 +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)
|
guint flags)
|
||||||
{
|
{
|
||||||
const float scale = ops_get_scale (builder);
|
const float scale = ops_get_scale (builder);
|
||||||
const float width = bounds->size.width * scale;
|
const float width = ceilf (bounds->size.width * scale);
|
||||||
const float height = bounds->size.height * scale;
|
const float height = ceilf (bounds->size.height * scale);
|
||||||
const float dx = builder->dx;
|
const float dx = builder->dx;
|
||||||
const float dy = builder->dy;
|
const float dy = builder->dy;
|
||||||
int render_target;
|
int render_target;
|
||||||
|
Loading…
Reference in New Issue
Block a user