Skip to content

Commit

Permalink
Actually create EGL Context
Browse files Browse the repository at this point in the history
  • Loading branch information
EIREXE committed Dec 15, 2021
1 parent 4219615 commit 4229e85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform/windows/context_gl_windows_angle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ Error ContextGL_Windows::initialize() {
minorVersion = 5;
EGLDisplay display = EGL_NO_DISPLAY;
EGLContext context = EGL_NO_CONTEXT;
EGLContext context_offscreen = EGL_NO_CONTEXT;
EGLSurface surface = EGL_NO_SURFACE;
EGLConfig config = nullptr;
EGLint contextAttribs[3];
Expand Down Expand Up @@ -310,6 +311,11 @@ Error ContextGL_Windows::initialize() {
throw "Failed to create EGL context";
}

context_offscreen = eglCreateContext(display, config, EGL_NO_CONTEXT, contextAttribs);
if (contecontext_offscreenxt == EGL_NO_CONTEXT) {
throw "Failed to create EGL Offscreen context";
}

if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE) {
throw "Failed to make fullscreen EGLSurface current";
}
Expand Down

0 comments on commit 4229e85

Please sign in to comment.