From 49b32d3f39fb62cf6164cf86e66370c887e9952a Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Mon, 29 May 2023 09:51:24 +0200 Subject: [PATCH] introduce buffer target type --- src/GPUFontAtlasLayerCombo.cpp | 3 ++- src/GPUFontAtlasLayerCombo.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 {