Fix EGL context detection for non-GLES2-core functions.

Fixes failure of the X Server with glamor using desktop GL on EGL, and
the associated testcase in the tree.  This was clearly just
copy-and-paste failure on my part in
b251e3ae33.
macos/v1.5.9
Eric Anholt 11 years ago
parent bb94003b78
commit 6eb075c70e
  1. 18
      src/dispatch_common.c
  2. 1
      test/Makefile.am

@ -600,16 +600,14 @@ epoxy_get_proc_address(const char *name)
return glXGetProcAddressARB((const GLubyte *)name);
} else {
#if PLATFORM_HAS_EGL
if (api.glx_handle && glXGetCurrentContext()) {
GLenum egl_api = epoxy_egl_get_current_gl_context_api();
switch (egl_api) {
case EGL_OPENGL_API:
case EGL_OPENGL_ES_API:
return eglGetProcAddress(name);
case EGL_NONE:
break;
}
GLenum egl_api = epoxy_egl_get_current_gl_context_api();
switch (egl_api) {
case EGL_OPENGL_API:
case EGL_OPENGL_ES_API:
return eglGetProcAddress(name);
case EGL_NONE:
break;
}
#endif
}

@ -63,7 +63,6 @@ TESTS = \
check_BINARIES = $(EGL_AND_GLX_BIN)
XFAIL_TESTS = \
egl_gl \
egl_and_glx_different_pointers_egl_glx \
$()

Loading…
Cancel
Save