| 122 | } |
| 123 | |
| 124 | void xLightKit_Destroy(xLightKit* lkit) |
| 125 | { |
| 126 | if (lkit == NULL) |
| 127 | { |
| 128 | return; |
| 129 | } |
| 130 | |
| 131 | int i; |
| 132 | xLightKitLight* currLight = lkit->lightList; |
| 133 | |
| 134 | for (i = 0; i < lkit->lightCount; currLight++, i++) |
| 135 | { |
| 136 | if (currLight->platLight != NULL) |
| 137 | { |
| 138 | _rwFrameSyncDirty(); |
| 139 | RwFrame* tframe = (RwFrame*)(currLight->platLight->object).object.parent; |
| 140 | if (tframe != NULL) |
| 141 | { |
| 142 | _rwObjectHasFrameSetFrame(currLight->platLight, 0); |
| 143 | RwFrameDestroy(tframe); |
| 144 | } |
| 145 | RpLightDestroy(currLight->platLight); |
| 146 | currLight->platLight = 0; |
| 147 | } |
| 148 | } |
| 149 | } |
no outgoing calls
no test coverage detected