Add call convention for wgl functions
parent
65bfe172c4
commit
2e21156e66
|
@ -584,10 +584,10 @@ int main(int argc, char **argv){
|
||||||
Assert(n < sizeof(cdir));
|
Assert(n < sizeof(cdir));
|
||||||
END_TIME_SECTION("current directory");
|
END_TIME_SECTION("current directory");
|
||||||
|
|
||||||
u32 flags = SUPER;
|
u32 flags = DEBUG_INFO | SUPER;
|
||||||
u32 arch = Arch_X64;
|
u32 arch = Arch_X64;
|
||||||
#if defined(DEV_BUILD) || defined(DEV_BUILD_X86)
|
#if defined(DEV_BUILD) || defined(DEV_BUILD_X86)
|
||||||
flags |= DEBUG_INFO | INTERNAL;
|
flags |= INTERNAL;
|
||||||
#endif
|
#endif
|
||||||
#if defined(OPT_BUILD) || defined(OPT_BUILD_X86)
|
#if defined(OPT_BUILD) || defined(OPT_BUILD_X86)
|
||||||
flags |= OPTIMIZATION;
|
flags |= OPTIMIZATION;
|
||||||
|
@ -596,7 +596,7 @@ int main(int argc, char **argv){
|
||||||
arch = Arch_X86;
|
arch = Arch_X86;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(DEV_BUILD) || defined(OPT_BUILD) || defined(DEV_BUILD_X86)
|
#if defined(DEV_BUILD) || defined(OPT_BUILD) || defined(DEV_BUILD_X86) || defined(OPT_BUILD_X86)
|
||||||
standard_build(&arena, cdir, flags, arch);
|
standard_build(&arena, cdir, flags, arch);
|
||||||
|
|
||||||
#elif defined(PACKAGE)
|
#elif defined(PACKAGE)
|
||||||
|
|
|
@ -1241,10 +1241,10 @@ win32_wgl_good(Void_Func *f){
|
||||||
f != (Void_Func*)-1);
|
f != (Void_Func*)-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef HGLRC (wglCreateContextAttribsARB_Function)(HDC,HGLRC,i32*);
|
typedef HGLRC (CALL_CONVENTION wglCreateContextAttribsARB_Function)(HDC,HGLRC,i32*);
|
||||||
typedef BOOL (wglChoosePixelFormatARB_Function)(HDC,i32*,f32*,u32,i32*,u32*);
|
typedef BOOL (CALL_CONVENTION wglChoosePixelFormatARB_Function)(HDC,i32*,f32*,u32,i32*,u32*);
|
||||||
typedef char* (wglGetExtensionsStringEXT_Function)();
|
typedef char* (CALL_CONVENTION wglGetExtensionsStringEXT_Function)();
|
||||||
typedef VOID (wglSwapIntervalEXT_Function)(i32);
|
typedef VOID (CALL_CONVENTION wglSwapIntervalEXT_Function)(i32);
|
||||||
|
|
||||||
global wglCreateContextAttribsARB_Function *wglCreateContextAttribsARB = 0;
|
global wglCreateContextAttribsARB_Function *wglCreateContextAttribsARB = 0;
|
||||||
global wglChoosePixelFormatARB_Function *wglChoosePixelFormatARB = 0;
|
global wglChoosePixelFormatARB_Function *wglChoosePixelFormatARB = 0;
|
||||||
|
|
Loading…
Reference in New Issue