[Interest] How to delete a QSGTexture from a QSGSimpleTexture before set another texture?

Nuno Santos nunosantos at imaginando.pt
Tue Jun 27 20:59:39 CEST 2017


I have the following code:


I want to delete the current texture before creating a new one. I having a leak here and I suspect that’s because I’m creating a new texture without deleting the previous

I have tried to do the following:

QSGTexture *t = _textureNode->texture();

if (t) {
delete t;

and then


But it crashed….

Any ideas?




More information about the Interest mailing list