Consistently use 4-space indents.

macos/v1.5.9
Eric Anholt 11 years ago
parent a652f8f6a2
commit 4c9b7e63b1
  1. 26
      src/dispatch_common.c

@ -152,7 +152,7 @@ PUBLIC bool
epoxy_has_gl_extension(const char *ext) epoxy_has_gl_extension(const char *ext)
{ {
return epoxy_extension_in_string((const char *)glGetString(GL_EXTENSIONS), return epoxy_extension_in_string((const char *)glGetString(GL_EXTENSIONS),
ext); ext);
} }
#if 0 #if 0
@ -184,34 +184,34 @@ epoxy_has_glx_extension(const char *ext)
void * void *
epoxy_dlsym(const char *name) epoxy_dlsym(const char *name)
{ {
assert(api->gl_handle); assert(api->gl_handle);
return dlsym(api->gl_handle, name); return dlsym(api->gl_handle, name);
} }
void * void *
epoxy_get_proc_address(const char *name) epoxy_get_proc_address(const char *name)
{ {
return glXGetProcAddress((const GLubyte *)name); return glXGetProcAddress((const GLubyte *)name);
} }
void void
epoxy_glx_autoinit(void) epoxy_glx_autoinit(void)
{ {
if (api->gl_handle) if (api->gl_handle)
return; return;
api->gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL); api->gl_handle = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL);
if (!api->gl_handle) { if (!api->gl_handle) {
fprintf(stderr, "Couldn't open libGL.so.1: %s", dlerror()); fprintf(stderr, "Couldn't open libGL.so.1: %s", dlerror());
exit(1); exit(1);
} }
api->winsys_handle = api->gl_handle; api->winsys_handle = api->gl_handle;
} }
void void
epoxy_platform_autoinit(void) epoxy_platform_autoinit(void)
{ {
epoxy_glx_autoinit(); epoxy_glx_autoinit();
} }

Loading…
Cancel
Save