Skip to content

Commit

Permalink
Fix wrong calling convention for internal getProcAddress pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
mdparker committed Aug 28, 2017
1 parent 1f48fb5 commit 543e44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/derelict/opengl/glloader.d
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 181,7 @@ struct GLLoader
}
else {
import derelict.util.exception : SymbolLoadException;

auto sym = getProcAddress(symName.ptr);
if(!sym)
throw new SymbolLoadException("Failed to load OpenGL symbol [" ~ symName ~ "]");
Expand Down Expand Up @@ -297,7 297,7 @@ private:
}

static if(!Derelict_OS_Mac) {
extern(C) @nogc nothrow alias da_getProcAddress = void* function(const(char)*);
extern(System) @nogc nothrow alias da_getProcAddress = void* function(const(char)*);
__gshared da_getProcAddress getProcAddress;
}

Expand Down

0 comments on commit 543e44f

Please sign in to comment.