MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuTextureUnbind

Function PiuTextureUnbind

modules/piu/MC/piuTexture.c:91–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void 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
109void PiuTexture_create(xsMachine* the)

Callers 2

PiuSkinUnbindFunction · 0.85
PiuFontUnbindFunction · 0.85

Calls 1

PiuTextureComputeSizeFunction · 0.85

Tested by

no test coverage detected