Hello again!
I'm following a tutorial on (desktop) OpenGL 3.3 about gamma correction.
Basically to gain automatic gamma-corrected colors on the DESKTOP opengl we have to do:
1) Use the SRGBA texture format.
2) Use glEnable(GL_FRAMEBUFFER_SRGB) + at window gl context creation use a SRGB default framebuffer (e.g. GLFW_SRGB or equivalent depending on the library we're using).
Now I've read that this feature is available in OpenGLES3 too. However I got some problem with point 2 above.
-> glEnable(GL_FRAMEBUFFER_SRGB) does not seem to be present (well, this is more an OpenGLES3 question, rather then something related to the emulator).
-> To get a SRGB default framebuffer I've tried using the following code:
#ifdef _WIN32
#else
#endif
When I do so the program crashes with a:
eglGetError() = 12292 (0x00003004) at line (maked with (*) above):
EGL_CHECK(eglChooseConfig(sEGLDisplay, aEGLAttributes, aEGLConfigs, 1, &cEGLConfigs)); // (*)
Any hint ?
Ok. Thank you for your support