From b3c0eaac80c2ba7acb38fe189d2604fc9d6b16c5 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 17 Oct 2019 14:18:46 +0200 Subject: [PATCH] app/internal/window: fix Windows build Signed-off-by: Elias Naur --- app/internal/window/egl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/internal/window/egl.go b/app/internal/window/egl.go index 1b03aa7b..c1a4f40f 100644 --- a/app/internal/window/egl.go +++ b/app/internal/window/egl.go @@ -236,7 +236,7 @@ func createContext(disp _EGLNativeDisplayType) (*eglContext, error) { _EGL_NONE, } eglCtx = eglCreateContext(eglDisp, eglCfg, nilEGLContext, ctxAttribs) - if eglCtx == nil { + if eglCtx == nilEGLContext { return nil, fmt.Errorf("eglCreateContext failed: 0x%x", eglGetError()) } }