Changeset View
Changeset View
Standalone View
Standalone View
components/ImageDataItem.cpp
Context not available. | |||||
80 | texNode->setRect(0, 0, w, h); | 80 | texNode->setRect(0, 0, w, h); | ||
---|---|---|---|---|---|
81 | 81 | | |||
82 | auto texture = window()->createTextureFromImage(d->data); | 82 | auto texture = window()->createTextureFromImage(d->data); | ||
83 | if(texNode->texture()) { | 83 | delete texNode->texture(); | ||
84 | delete texNode->texture(); | | |||
85 | } | | |||
86 | texNode->setTexture(texture); | 84 | texNode->setTexture(texture); | ||
87 | 85 | | |||
88 | return texNode; | 86 | return texNode; | ||
Context not available. |