From b50703aea55450e04bcd8154335774786e0f253b Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 18 Jul 2012 09:38:34 -0700 Subject: egl: Replace KHR_surfaceless_* extensions with KHR_surfaceless_context MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit KHR extension name is reserved for Khronos ratified extensions, and there is no such thing as EGL_KHR_surfaceless_{gles1,gles2,opengl}. Replace these three extensions with EGL_KHR_surfaceless_context since that extension actually exists. Signed-off-by: Ian Romanick Reviewed-by: Kristian Høgsberg Reviewed-by: Matt Turner Reviewed-by: Chad Versace --- src/egl/main/eglapi.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/egl/main/eglapi.c') diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index ffc404cc2d7..bcc546557b8 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -427,9 +427,7 @@ eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_list, if (!config) { /* config may be NULL if surfaceless */ - if (!disp->Extensions.KHR_surfaceless_gles1 && - !disp->Extensions.KHR_surfaceless_gles2 && - !disp->Extensions.KHR_surfaceless_opengl) + if (!disp->Extensions.KHR_surfaceless_context) RETURN_EGL_ERROR(disp, EGL_BAD_CONFIG, EGL_NO_CONTEXT); } @@ -487,9 +485,7 @@ eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, RETURN_EGL_ERROR(disp, EGL_BAD_CONTEXT, EGL_FALSE); if (!draw_surf || !read_surf) { /* surfaces may be NULL if surfaceless */ - if (!disp->Extensions.KHR_surfaceless_gles1 && - !disp->Extensions.KHR_surfaceless_gles2 && - !disp->Extensions.KHR_surfaceless_opengl) + if (!disp->Extensions.KHR_surfaceless_context) RETURN_EGL_ERROR(disp, EGL_BAD_SURFACE, EGL_FALSE); if ((!draw_surf && draw != EGL_NO_SURFACE) || -- cgit v1.2.3