开发者

Opengles Surface(EglSurface) resizing causes black screen on android

开发者 https://www.devze.com 2023-01-27 14:47 出处:网络
To resize the Egl surface, i am destroying current surface and creating new surface with new size, but in-between these operation, it shows black screen after the d开发者_开发百科estroy operation.

To resize the Egl surface, i am destroying current surface and creating new surface with new size, but in-between these operation, it shows black screen after the d开发者_开发百科estroy operation.

How can i avoid this behaviour ? i am using opengles 2.0 lib on android.


You could try creating the new surface with the new size swapping it out with the old version THEN destroying the old surface.

0

精彩评论

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