| 89 | } |
| 90 | |
| 91 | void PiuTextureUnbind(PiuTexture* self, PiuApplication* application, PiuView* view) |
| 92 | { |
| 93 | (*self)->usage--; |
| 94 | if ((*self)->usage == 0) { |
| 95 | piuTextureSize -= PiuTextureComputeSize(self); |
| 96 | #ifdef mxInstrument |
| 97 | modInstrumentationMax(PiuCommandListUsed, piuTextureSize); |
| 98 | #endif |
| 99 | if ((*self)->flags & piuTextureAlpha) { |
| 100 | PocoBitmapRemove((*view)->poco, (*self)->mask.id, PiuViewReceiver, view); |
| 101 | } |
| 102 | if ((*self)->flags & piuTextureColor) { |
| 103 | PocoBitmapRemove((*view)->poco, (*self)->bits.id, PiuViewReceiver, view); |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | #endif |
| 108 | |
| 109 | void PiuTexture_create(xsMachine* the) |
no test coverage detected