From ea6d3f589fc54281e8a514a5c483cb3d49d24a90 Mon Sep 17 00:00:00 2001 From: Elias Aebi Date: Sat, 6 Jul 2019 16:23:21 +0200 Subject: [PATCH] use glTexSubImage2D instead of glTextureSubImage2D --- gsk/gl/gskglglyphcache.c | 8 ++++---- gsk/gl/gskgliconcache.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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); }