stupid fucking switch syntax

This commit is contained in:
jacekpoz 2024-08-13 12:41:52 +02:00
parent 8ff74e7235
commit b1f31b7965
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -97,15 +97,19 @@ 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();
}