glGenTextures - is there a limit to the number of textures?

后端 未结 2 752
逝去的感伤
逝去的感伤 2021-02-07 23:48

Is there a limit to the number of textures that can be created in OpenGL - that is, with glGenTextures?

I know that there are some limits imposed by GL, eg. the number o

2条回答
  •  一整个雨季
    2021-02-08 00:15

    There is no limit on the number of texture names you can generate. There is a limit on texture memory however, so an implementation can still fail a glGenTextures call due to memory limitations.

    So don't create a bunch of texture names and then not use them. Create what you need.

提交回复
热议问题