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:
Timm Bäder 2019-02-23 04:50:25 +01:00
parent e54ce8f328
commit f9041230c6

View File

@ -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;