mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 20:11:58 +00:00
Wayland: Create the surface before the context
This fixes a regression introduced in 496f559c
where a context would be
created for a NULL egl_surface, which subsequently fails.
Fixes #633.
This commit is contained in:
parent
9f3636a103
commit
4c06426d46
@ -238,15 +238,15 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
|
||||
const _GLFWctxconfig* ctxconfig,
|
||||
const _GLFWfbconfig* fbconfig)
|
||||
{
|
||||
if (!createSurface(window, wndconfig))
|
||||
return GLFW_FALSE;
|
||||
|
||||
if (ctxconfig->api != GLFW_NO_API)
|
||||
{
|
||||
if (!_glfwCreateContext(window, ctxconfig, fbconfig))
|
||||
return GLFW_FALSE;
|
||||
}
|
||||
|
||||
if (!createSurface(window, wndconfig))
|
||||
return GLFW_FALSE;
|
||||
|
||||
if (wndconfig->monitor)
|
||||
{
|
||||
wl_shell_surface_set_fullscreen(
|
||||
|
Loading…
Reference in New Issue
Block a user