My system has GL_OES_surfaceless_context, but unable to create pbuffer surfaces (It's mesa, so I doubt I'm the only one)
As I see it correct way would be to:
1) See if we have the extension
2) Try to choose config with PBUFFER_BIT if not
3) Notify user if both fails
But to check for extension we need to already have context and consequently a chosen config, so it's a bit recursive.
I simply try to bind newly created context and proceed to make pbuffer only if it fails.
My system has
GL_OES_surfaceless_context
, but unable to create pbuffer surfaces (It's mesa, so I doubt I'm the only one)As I see it correct way would be to: 1) See if we have the extension 2) Try to choose config with
PBUFFER_BIT
if not 3) Notify user if both failsBut to check for extension we need to already have context and consequently a chosen config, so it's a bit recursive. I simply try to bind newly created context and proceed to make pbuffer only if it fails.