add change to drm/x egl contexts for future OpenVG support

This commit is contained in:
Toad King 2012-09-18 22:59:51 -04:00
parent 66fd23d611
commit 8d5726a5ed
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;