stupid fucking switch syntax
This commit is contained in:
parent
8ff74e7235
commit
b1f31b7965
1 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue