开发者

Keeping a reference to gl in GLSurfaceView::onSurfaceCreated?

开发者 https://www.devze.com 2023-03-04 19:00 出处:网络
Is it safe to keep a reference to the GL10 gl parameter when GLSurfaceView开发者_运维技巧::onSurfaceCreated is called?

Is it safe to keep a reference to the GL10 gl parameter when GLSurfaceView开发者_运维技巧::onSurfaceCreated is called?

I'd like to initialize textures at some point later than the onSurfaceCreated but I don't know now, so I wondered if just keeping a reference to it is ok.


I think that is generally a bad idea. You can bind textures in GLSurfaceView.Renderer::onDrawFrame.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号