mirror of
https://github.com/glfw/glfw.git
synced 2025-04-07 14:29:35 +00:00
EGL: Add better error for no stereo
(cherry picked from commit 93e93135f2
)
This commit is contained in:
parent
6fb86c089e
commit
31b038663a
1 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,12 @@ static GLFWbool chooseEGLConfig(const _GLFWctxconfig* ctxconfig,
|
|||
else
|
||||
apiBit = EGL_OPENGL_BIT;
|
||||
|
||||
if (desired->stereo)
|
||||
{
|
||||
_glfwInputError(GLFW_FORMAT_UNAVAILABLE, "EGL: Stereo rendering not supported");
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
eglGetConfigs(_glfw.egl.display, NULL, 0, &nativeCount);
|
||||
if (!nativeCount)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue