OpenGL ES 2.0 render to texture

后端 未结 4 1587
予麋鹿
予麋鹿 2020-12-15 08:25

I\'m trying to render to a texture using OpenGL ES 2.0, but I can\'t seem to make it work.

This is how I proceed:

    struct RenderTexture
    {
             


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 09:10

    This has been a while, but as I wrote in the comments, be sure you're initializing a power of 2 texture.

提交回复
热议问题