Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
调用 GLSurfaceView::onSurfaceCreated 时保留对 GL10 gl 参数的引用是否安全?
我想在 onSurfaceCreated 之后的某个时间初始化纹理,但我现在不知道,所以我想知道是否只保留对它的引用就可以了。
我认为这通常是一个坏主意。您可以在 GLSurfaceView.Renderer::onDrawFrame 中绑定纹理。