@@ -3129,7 +3129,7 @@ const renderer_prototype = global.Object.create(Object, {
31293129 let cachedGlyphInfo = null ;
31303130 let cachedMaskGlyphInfo = null ;
31313131 this . _gl . activeTexture ( this . _gl . TEXTURE0 ) ;
3132- if ( texHash === null ) {
3132+ if ( texHash === null || ! this . _checkGlyphCache ( texHash , texIndex ) ) {
31333133 this . _gl . bindTexture ( this . _gl . TEXTURE_2D , this . _textureSubtitle ) ;
31343134 this . _loadSubtitleToVram ( source , this . _textureSubtitleBounds ) ;
31353135 } else {
@@ -3138,7 +3138,7 @@ const renderer_prototype = global.Object.create(Object, {
31383138 }
31393139 if ( ! isShape ) {
31403140 this . _gl . activeTexture ( this . _gl . TEXTURE1 ) ;
3141- if ( texMaskHash === null ) {
3141+ if ( texMaskHash === null || ! this . _checkGlyphCache ( texMaskHash , texMaskIndex ) ) {
31423142 this . _gl . bindTexture (
31433143 this . _gl . TEXTURE_2D ,
31443144 this . _textureSubtitleMask
@@ -3216,7 +3216,7 @@ const renderer_prototype = global.Object.create(Object, {
32163216 ] , 0 ) ;
32173217
32183218 let tex_coords ;
3219- if ( texHash === null ) {
3219+ if ( texHash === null || ! this . _checkGlyphCache ( texHash , texIndex ) ) {
32203220 let dimensions = source . getTextureDimensions ( ) ;
32213221 let extents = this . _textureSubtitleBounds ;
32223222 let width = dimensions [ 0 ] / extents [ 0 ] ;
@@ -3247,7 +3247,7 @@ const renderer_prototype = global.Object.create(Object, {
32473247
32483248 let mask_coords ;
32493249 if ( ! isShape ) {
3250- if ( texMaskHash === null ) {
3250+ if ( texMaskHash === null || ! this . _checkGlyphCache ( texMaskHash , texMaskIndex ) ) {
32513251 let maskDimensions =
32523252 this . _textMaskRenderer . getTextureDimensions ( ) ;
32533253 let extents = this . _textureSubtitleMaskBounds ;
0 commit comments