app/internal/window: fix Windows build

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-17 14:18:46 +02:00
parent 3ec0948bba
commit b3c0eaac80
+1 -1
View File
@@ -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())
}
}