File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,7 @@ namespace mlx
50
50
new_text.SetColor (std::move (vec_color));
51
51
}
52
52
else if (!p_scene->IsTextAtGivenDrawLayer (str, m_draw_layer))
53
- {
54
53
p_scene->BringToDrawLayer (text.Get (), m_draw_layer);
55
- }
56
54
}
57
55
58
56
void GraphicsSupport::TexturePut (NonOwningPtr<Texture> texture, int x, int y)
@@ -70,10 +68,8 @@ namespace mlx
70
68
new_sprite.SetPosition (Vec2f{ static_cast <float >(x), static_cast <float >(y) });
71
69
72
70
}
73
- else if (!p_scene->IsTextureAtGivenDrawLayer (texture, m_draw_layer))
74
- {
75
- p_scene->BringToDrawLayer (sprite.Get (), m_draw_layer);
76
- }
71
+ else if (!p_scene->IsTextureAtGivenDrawLayer (texture, m_draw_layer))
72
+ p_scene->BringToDrawLayer (sprite.Get (), m_draw_layer);
77
73
}
78
74
79
75
void GraphicsSupport::TryEraseSpritesInScene (NonOwningPtr<Texture> texture) noexcept
You can’t perform that action at this time.
0 commit comments