mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Cleanup egl_create_context
This commit is contained in:
parent
38f9b93885
commit
3da08c9d9e
@ -238,13 +238,15 @@ bool egl_init_context(egl_ctx_data_t *egl,
|
||||
|
||||
bool egl_create_context(egl_ctx_data_t *egl, const EGLint *egl_attribs)
|
||||
{
|
||||
egl->ctx = eglCreateContext(egl->dpy, egl->config, EGL_NO_CONTEXT,
|
||||
EGLContext ctx = eglCreateContext(egl->dpy, egl->config, EGL_NO_CONTEXT,
|
||||
egl_attribs);
|
||||
egl->hw_ctx = NULL;
|
||||
|
||||
if (egl->ctx == EGL_NO_CONTEXT)
|
||||
if (ctx == EGL_NO_CONTEXT)
|
||||
return false;
|
||||
|
||||
egl->ctx = ctx;
|
||||
egl->hw_ctx = NULL;
|
||||
|
||||
if (egl->use_hw_ctx)
|
||||
{
|
||||
egl->hw_ctx = eglCreateContext(egl->dpy, egl->config, egl->ctx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user