Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix EGLDisplay parameters in epoxy functions
EGLDisplay is typedefed as a pointer.
  • Loading branch information
Fredrik Höglund committed Feb 11, 2014
1 parent 87a099b commit e20b3ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/epoxy/egl.h
Expand Up @@ -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" */
Expand Down
8 changes: 4 additions & 4 deletions src/dispatch_egl.c
Expand Up @@ -30,7 +30,7 @@
PUBLIC int
epoxy_conservative_egl_version(void)
{
EGLDisplay *dpy = eglGetCurrentDisplay();
EGLDisplay dpy = eglGetCurrentDisplay();

if (!dpy)
return 14;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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);
}

0 comments on commit e20b3ce

Please sign in to comment.