Skip to content

Commit 5b3317e

Browse files
authored
Fix undeclared identifier 'float_text' error in RepLabel.cpp (#475)
1 parent 5848424 commit 5b3317e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

layer2/RepLabel.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,8 +1543,12 @@ static void RepLabelGenerateShaderCGO(RepLabel* I, RenderInfo* info)
15431543
auto font_id = SettingGet<int>(
15441544
G, I->cs->Setting.get(), I->obj->Setting.get(), cSetting_label_font_id);
15451545
auto font_size = SettingGet<float>(
1546-
G, I->cs->Setting.get(), I->obj->Setting.get(), cSetting_label_size);
1547-
1546+
G, I->cs->Setting.get(), I->obj->Setting.get(), cSetting_label_size);
1547+
#ifdef PURE_OPENGL_ES_2
1548+
auto float_text = SettingGet<bool>(
1549+
G, I->cs->Setting.get(), I->obj->Setting.get(), cSetting_float_labels);
1550+
#endif
1551+
15481552
I->shaderCGO = CGONew(G);
15491553
I->shaderCGO->use_shader = true;
15501554
TextSetOutlineColor(G, I->OutlineColor);

0 commit comments

Comments
 (0)