WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/gl/win.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ use winapi::um::winuser::{

use super::{GlConfig, GlError, Profile};

// winapi doesn't link with opengl32.lib on all supported Windows platforms,
// Since winapi is no longer being maintained this is unlikely to ever be fixed,
// so we need to link it manually.
#[link(name = "opengl32")]
extern "system" {}

// See https://www.khronos.org/registry/OpenGL/extensions/ARB/WGL_ARB_create_context.txt

type WglCreateContextAttribsARB = extern "system" fn(HDC, HGLRC, *const i32) -> HGLRC;
Expand Down