diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index 6d8872a6cd..14ff40e453 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -193,10 +193,10 @@ upload_glyph (GlyphCacheKey *key, if (render_glyph (key, value, &r)) { glBindTexture (GL_TEXTURE_2D, value->texture_id); - glTextureSubImage2D (value->texture_id, 0, - r.x, r.y, r.width, r.height, - GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, - r.data); + glTexSubImage2D (GL_TEXTURE_2D, 0, + r.x, r.y, r.width, r.height, + GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, + r.data); g_free (r.data); } diff --git a/gsk/gl/gskgliconcache.c b/gsk/gl/gskgliconcache.c index c0ad9af374..2975434dbc 100644 --- a/gsk/gl/gskgliconcache.c +++ b/gsk/gl/gskgliconcache.c @@ -136,7 +136,7 @@ upload_region_or_else (GskGLIconCache *self, GskImageRegion *region) { glBindTexture (GL_TEXTURE_2D, texture_id); - glTextureSubImage2D (texture_id, 0, region->x, region->y, region->width, region->height, + glTexSubImage2D (GL_TEXTURE_2D, 0, region->x, region->y, region->width, region->height, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV, region->data); }