diff options
Diffstat (limited to 'egl_1_4/37CreateContext.c')
-rwxr-xr-x | egl_1_4/37CreateContext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/egl_1_4/37CreateContext.c b/egl_1_4/37CreateContext.c index 5ab239e..95afd38 100755 --- a/egl_1_4/37CreateContext.c +++ b/egl_1_4/37CreateContext.c @@ -111,6 +111,7 @@ EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config, pContext->renderBuffer = EGL_NONE; pContext->apiKind = EGLINTER(global).currentAPI; pContext->apiVersion = apiVersion; + pContext->deleted = EGL_FALSE; switch (pContext->apiKind) { default: case EGL_OPENGL_API: @@ -169,5 +170,6 @@ EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLINTER(SetError)(EGL_BAD_CONTEXT); return EGL_NO_CONTEXT; } + return (EGLContext)(pContext->native); } |