diff --git a/src/ptk_vk/components.c b/src/ptk_vk/components.c index 86a5079..7c99110 100644 --- a/src/ptk_vk/components.c +++ b/src/ptk_vk/components.c @@ -97,14 +97,18 @@ void vk_component(PtkHandle component) { PTK_LIST_ADD(PtkHandle, m_components, component); switch (component->type) { - case PTK_COMPONENT_TYPE_TRIANGLE: + case PTK_COMPONENT_TYPE_TRIANGLE: { triangle((PtkTriangle *)component, 0); - case PTK_COMPONENT_TYPE_RECT: + } break; + case PTK_COMPONENT_TYPE_RECT: { rect((PtkRect *)component); - case PTK_COMPONENT_TYPE_ELLIPSE: + } break; + case PTK_COMPONENT_TYPE_ELLIPSE: { ellipse((PtkEllipse *)component); - default: + } break; + default: { return; + } } vk_transfer_vertex_data();