开发者

Keeping a reference to gl in GLSurfaceView::onSurfaceCreated?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜