Commit 0e45faac authored by Richard Gobeille's avatar Richard Gobeille
Browse files

glad: update to 0.1.34

parent 3ddb9dd2
Generated with GLAD (GL/GLES/EGL/GLX/WGL Loader-Generator):
GL: http://glad.dav1d.de/#profile=compatibility&api=gl%3D2.0&api=gles1%3D1.0&api=gles2%3D2.0&api=glsc2%3Dnone&extensions=GL_ARB_buffer_storage&extensions=GL_ARB_clip_control&extensions=GL_ARB_debug_output&extensions=GL_ARB_depth_clamp&extensions=GL_ARB_map_buffer_range&extensions=GL_ARB_shader_texture_lod&extensions=GL_ARB_sync&extensions=GL_ARB_texture_rectangle&extensions=GL_EXT_fog_coord&extensions=GL_EXT_framebuffer_object&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_filter_anisotropic&extensions=GL_NV_fog_distance&extensions=GL_NV_multisample_filter_hint&extensions=GL_SGIS_fog_function&extensions=GL_SGIX_fog_offset&language=c&specification=gl&loader=on
GL: https://glad.dav1d.de/#language=c&specification=gl&api=gl%3D2.1&api=gles1%3D1.0&api=gles2%3D2.0&api=glsc2%3Dnone&profile=compatibility&extensions=GL_ARB_buffer_storage&extensions=GL_ARB_clip_control&extensions=GL_ARB_debug_output&extensions=GL_ARB_depth_clamp&extensions=GL_ARB_map_buffer_range&extensions=GL_ARB_occlusion_query2&extensions=GL_ARB_robustness&extensions=GL_ARB_sampler_objects&extensions=GL_ARB_shader_texture_lod&extensions=GL_ARB_sync&extensions=GL_ARB_texture_rectangle&extensions=GL_ARB_timer_query&extensions=GL_EXT_fog_coord&extensions=GL_EXT_framebuffer_object&extensions=GL_EXT_texture_compression_s3tc&extensions=GL_EXT_texture_filter_anisotropic&extensions=GL_KHR_robustness&extensions=GL_NV_fog_distance&extensions=GL_NV_multisample_filter_hint&extensions=GL_SGIS_fog_function&extensions=GL_SGIX_fog_offset&loader=on
WGL: http://glad.dav1d.de/#specification=wgl&api=wgl%3D1.0&extensions=WGL_ARB_create_context&extensions=WGL_ARB_create_context_profile&extensions=WGL_ARB_extensions_string&extensions=WGL_ARB_pixel_format&extensions=WGL_EXT_extensions_string&extensions=WGL_EXT_swap_control&language=c&loader=on
This diff is collapsed.
/*
WGL loader generated by glad 0.1.33 on Wed Jun 24 02:32:00 2020.
WGL loader generated by glad 0.1.34 on Wed Aug 11 19:43:54 2021.
Language/Generator: C/C++
Specification: wgl
......@@ -86,6 +86,7 @@ typedef void* (* GLADloadproc)(const char *name);
#endif
GLAPI int gladLoadWGL(HDC hdc);
GLAPI void gladUnloadWGL(void);
GLAPI int gladLoadWGLLoader(GLADloadproc, HDC hdc);
......
This diff is collapsed.
/*
WGL loader generated by glad 0.1.33 on Wed Jun 24 02:32:00 2020.
WGL loader generated by glad 0.1.34 on Wed Aug 11 19:43:54 2021.
Language/Generator: C/C++
Specification: wgl
......@@ -59,7 +59,7 @@ static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
#endif
static
int open_gl(void) {
int open_wgl(void) {
#ifndef IS_UWP
libGL = LoadLibraryW(L"opengl32.dll");
if(libGL != NULL) {
......@@ -74,7 +74,7 @@ int open_gl(void) {
}
static
void close_gl(void) {
void close_wgl(void) {
if(libGL != NULL) {
FreeLibrary((HMODULE) libGL);
libGL = NULL;
......@@ -90,7 +90,7 @@ static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
#endif
static
int open_gl(void) {
int open_wgl(void) {
#ifdef __APPLE__
static const char *NAMES[] = {
"../Frameworks/OpenGL.framework/OpenGL",
......@@ -121,7 +121,7 @@ int open_gl(void) {
}
static
void close_gl(void) {
void close_wgl(void) {
if(libGL != NULL) {
dlclose(libGL);
libGL = NULL;
......@@ -153,14 +153,17 @@ void* get_proc(const char *namez) {
int gladLoadWGL(HDC hdc) {
int status = 0;
if(open_gl()) {
if(open_wgl()) {
status = gladLoadWGLLoader((GLADloadproc)get_proc, hdc);
close_gl();
}
return status;
}
void gladUnloadGLX(void) {
close_wgl();
}
static HDC GLADWGLhdc = (HDC)INVALID_HANDLE_VALUE;
static int get_exts(void) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment