glDeleteTextures does not seem to free up texture memory on Windows, is there no solution?

后端 未结 3 1766
忘掉有多难
忘掉有多难 2021-02-15 14:34

I have been having some problems with my openGL application running out of memory and I am trying to track down my problem. To this end, I created a small test program that bas

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-15 15:18

    I think you could try to push an empty image to the texture you want to delete by using glTexImage2d/3d. It worked for me with VBO's - I get rid of the data from the graphic cards by removing a buffer data using glBufferData and passing an empty array handle, because the glDeleteBuffers didn't removed the data by itself.

提交回复
热议问题