Completely replaces the current image and the version in the image stack.
| 537 | |
| 538 | // Completely replaces the current image and the version in the image stack. |
| 539 | ILAPI void ILAPIENTRY ilReplaceCurImage(ILimage *Image) |
| 540 | { |
| 541 | if (iCurImage) { |
| 542 | ilActiveImage(0); |
| 543 | ilCloseImage(iCurImage); |
| 544 | } |
| 545 | ImageStack[ilGetCurName()] = Image; |
| 546 | iCurImage = Image; |
| 547 | ParentImage = IL_TRUE; |
| 548 | return; |
| 549 | } |
| 550 | |
| 551 | |
| 552 | // Like realloc but sets new memory to 0. |
nothing calls this directly
no test coverage detected