Fix EGLDisplay parameters in epoxy functions

EGLDisplay is typedefed as a pointer.
macos/v1.5.9
Fredrik Höglund 11 years ago
parent 87a099b141
commit e20b3ce6c7
  1. 4
      include/epoxy/egl.h
  2. 8
      src/dispatch_egl.c

@ -45,8 +45,8 @@ extern "C" {
#include "epoxy/egl_generated.h"
bool epoxy_has_egl_extension(EGLDisplay *dpy, const char *extension);
int epoxy_egl_version(EGLDisplay *dpy);
bool epoxy_has_egl_extension(EGLDisplay dpy, const char *extension);
int epoxy_egl_version(EGLDisplay dpy);
#ifdef __cplusplus
} /* extern "C" */

@ -30,7 +30,7 @@
PUBLIC int
epoxy_conservative_egl_version(void)
{
EGLDisplay *dpy = eglGetCurrentDisplay();
EGLDisplay dpy = eglGetCurrentDisplay();
if (!dpy)
return 14;
@ -39,7 +39,7 @@ epoxy_conservative_egl_version(void)
}
PUBLIC int
epoxy_egl_version(EGLDisplay *dpy)
epoxy_egl_version(EGLDisplay dpy)
{
int major, minor;
const char *version_string;
@ -54,7 +54,7 @@ epoxy_egl_version(EGLDisplay *dpy)
bool
epoxy_conservative_has_egl_extension(const char *ext)
{
EGLDisplay *dpy = eglGetCurrentDisplay();
EGLDisplay dpy = eglGetCurrentDisplay();
if (!dpy)
return true;
@ -63,7 +63,7 @@ epoxy_conservative_has_egl_extension(const char *ext)
}
PUBLIC bool
epoxy_has_egl_extension(EGLDisplay *dpy, const char *ext)
epoxy_has_egl_extension(EGLDisplay dpy, const char *ext)
{
return epoxy_extension_in_string(eglQueryString(dpy, EGL_EXTENSIONS), ext);
}

Loading…
Cancel
Save