diff --git a/src/GPUFontAtlasLayerCombo.cpp b/src/GPUFontAtlasLayerCombo.cpp index 604863b..aeac68f 100644 --- a/src/GPUFontAtlasLayerCombo.cpp +++ b/src/GPUFontAtlasLayerCombo.cpp @@ -35,7 +35,8 @@ void GPUFontAtlasLayerCombo::setup(const ComboIdentifier & identifier, } ofxGPUFont::initializeFont(library, this->identifier.fontPath, - font); + font, + this->settings.bufferTargetType); font->listFontVariationAxes(fontVariationAxesParameters, library); //cout << this->identifier.fontPath << " : fontVariationAxes :" << endl; diff --git a/src/GPUFontAtlasLayerCombo.h b/src/GPUFontAtlasLayerCombo.h index 58b6c29..cbb1257 100644 --- a/src/GPUFontAtlasLayerCombo.h +++ b/src/GPUFontAtlasLayerCombo.h @@ -15,6 +15,7 @@ namespace ofxVariableLab { struct GPUFontAtlasLayerComboSettings : public AtlasLayerComboSettings { + GLint bufferTargetType = GL_TEXTURE_2D_ARRAY; }; class GPUFontAtlasLayerCombo : public AtlasLayerCombo { struct Transform {