PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Textures in opengl es..

RapchikProgrammer · 13 Nov 2009, 07:41 UTC
Hey, im using edgelib to handle the textures in my game and handling the geometry myself.. now i see we can upload and bind textures but no wrapper for glDeleteTextures ?? i have hacked a way right now by calling getintegerv but no proper way to unload textures from gpu??
Hi,

Right now the only proper way to remove a texture from the GPU is to call Free() on the texture object. Releasing textures yourself can create undefined behaviour when the texture is freed after that (it may delete a texture handle used by another surface).