IIRC, the image data is ref-counted internally in the driver (per Khronos extension docs). So you not only need to remember to destroy the image, but also need to delete all associated GL textures. Only when all such references are gone will the buffer be freed.
IIRC, the image data is ref-counted internally in the driver (per Khronos extension docs). So you not only need to remember to destroy the image, but also need to delete all associated GL textures. Only when all such references are gone will the buffer be freed.