After creating textures in Android OpenGL ES, do I need to explicitly delete these textures later using glDeleteTextures ()? If so, how do I set up a callback for this?
Thanks in advance
No, they are automatically deleted as soon as you are removed from your application. The big mistake is to ignore texture identifiers if your application becomes active again - remember this when your onSurfaceChangedis called again.
onSurfaceChanged
, glDeleteTextures(), .
, EboMike, , ; , -, glDeleteTextures() finalize(), - int "contextId", GL (.. onSurfaceCreated); contextId , , , ( , ).
Source: https://habr.com/ru/post/1776802/More articles:What is the equivalent value for apache configuration - nginxact_taggable_on does not write tagger_id or tagger_type - ruby-on-railsHow to remove printer from .Net print dialog? - c #Modal view using UIModalPresentationFormSheet displayed on screen - iphone-sdk-3.0Character set expansion algorithm? - c #JQuery plugin: how to check my plugin configuration using qunit? - javascriptmysql - set column value equal to id insertion? - mysqlИспользование соответствующих типов данных (путь, строка и т.д.) С boost:: filesystem в С++ для эффективной итерации файлов, изменения имен файлов и выполнения файловых операций - c++WebBrowser as background with canvas - c #A shorter way to express it? C = A if A else B - pythonAll Articles