bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
14.6k stars 1.92k forks source link

glTexImage2DMultisample GLES not found #1805

Open adamikandras opened 5 years ago

adamikandras commented 5 years ago

Hi!

Sadly we experience problems with glTexImage2DMultisample when trying to use on Android. This function is not found, and is a nullptr, so of course the app crashes. As I understand glTexImage2DMultisample is only available for OpenGL, but not OpeGL ES. There is a similar and probably equivalent function called glTexStorage2DMultisample, which is not used by bgfx yet. Would You fix this issue, or should I submit a pull request for it?

msmshazan commented 3 years ago

Using glTexStorage2DMultisample limits usage to gles3 best option to use extension https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_multisampled_render_to_texture.txt