mirror of
https://github.com/libretro/RetroArch
synced 2025-03-14 01:19:01 +00:00
add change to drm/x egl contexts for future OpenVG support
This commit is contained in:
parent
66fd23d611
commit
8d5726a5ed
@ -422,7 +422,7 @@ bool gfx_ctx_init(void)
|
||||
if (!eglChooseConfig(g_egl_dpy, config_attribs, &g_config, 1, &n) || n != 1)
|
||||
goto error;
|
||||
|
||||
g_egl_ctx = eglCreateContext(g_egl_dpy, g_config, EGL_NO_CONTEXT, context_attribs);
|
||||
g_egl_ctx = eglCreateContext(g_egl_dpy, g_config, EGL_NO_CONTEXT, (driver.video == &video_gl) ? context_attribs : NULL);
|
||||
if (!g_egl_ctx)
|
||||
goto error;
|
||||
|
||||
|
@ -299,7 +299,7 @@ bool gfx_ctx_set_video_mode(
|
||||
CWBorderPixel | CWColormap | CWEventMask, &swa);
|
||||
XSetWindowBackground(g_dpy, g_win, 0);
|
||||
|
||||
g_egl_ctx = eglCreateContext(g_egl_dpy, g_config, EGL_NO_CONTEXT, egl_ctx_attribs);
|
||||
g_egl_ctx = eglCreateContext(g_egl_dpy, g_config, EGL_NO_CONTEXT, (driver.video == &video_gl) ? egl_ctx_attribs : NULL);
|
||||
if (!g_egl_ctx)
|
||||
goto error;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user