File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -365,10 +365,10 @@ pub const gl = struct {
365
365
pub const swapWindow = SDL_GL_SwapWindow ;
366
366
extern fn SDL_GL_SwapWindow (window : * Window ) void ;
367
367
368
- pub fn getProcAddress (proc : [* :0 ]const u8 ) FunctionPointer {
368
+ pub fn getProcAddress (proc : [* :0 ]const u8 ) callconv ( .c ) FunctionPointer {
369
369
return SDL_GL_GetProcAddress (proc );
370
370
}
371
- extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) FunctionPointer ;
371
+ extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) callconv ( .c ) FunctionPointer ;
372
372
373
373
pub fn isExtensionSupported (extension : [:0 ]const u8 ) bool {
374
374
return SDL_GL_ExtensionSupported (extension ) == True ;
Original file line number Diff line number Diff line change @@ -335,10 +335,10 @@ pub const gl = struct {
335
335
}
336
336
extern fn SDL_GL_SwapWindow (window : * Window ) c_int ;
337
337
338
- pub fn getProcAddress (proc : [* :0 ]const u8 ) FunctionPointer {
338
+ pub fn getProcAddress (proc : [* :0 ]const u8 ) callconv ( .c ) FunctionPointer {
339
339
return SDL_GL_GetProcAddress (proc );
340
340
}
341
- extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) FunctionPointer ;
341
+ extern fn SDL_GL_GetProcAddress (proc : ? [* :0 ]const u8 ) callconv ( .c ) FunctionPointer ;
342
342
343
343
pub fn isExtensionSupported (extension : [:0 ]const u8 ) bool {
344
344
return SDL_GL_ExtensionSupported (extension ) == True ;
You can’t perform that action at this time.
0 commit comments