Hello
I met strange crash with glfw2.7 and windows xp. The console output shows:
Failed to select a GLFWFBConfig from the alternatives
Unable to find a usable pixel format
Failed to create GLFW window
This is very weird. I started to read glfw source code and looks like
_glfwChooseFBConfig function works bad. Since console dosn’t output “Failed
to find any usable GLFWFBConfigs” so i guess that some GLWFBConfigs were
found. So the main question is why _glfwChooseFBConfig returns zero? Function
body looks quite clear and only way to skip FB is to request desired
Framebuffer to support stereo rendering. But I am not doing that. My code:
I believe it’s due to a missing check for whether or not any GLFWFBConfigs
passed all the checks in getFBConfigs, i.e. it’s returning an array with zero
valid entries.
A fix has been committed to the Subversion repository and will be included in
2.7.6.
As for why no pixel formats were considered valid… are you sure you have
OpenGL-capable drivers installed?
ahh now I see, this condition checks If there is array returned, not total
size of acceptable pixel formats.
And one more thing, I am not an expert but aren’t this checks in getFBConfigs
too restrictive (PFD_GENERIC_ACCELERATED , PFD_GENERIC_FORMAT)? I am
only speculating