mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 12:30:30 +00:00
Add WIN32 symbols for OpenGL support (#304)
This commit is contained in:
parent
30cd28b1f8
commit
0a0997a872
20 changed files with 290 additions and 92 deletions
|
@ -1,2 +1,15 @@
|
|||
.include "o/libc/nt/codegen.inc"
|
||||
.imp gdi32,__imp_SwapBuffers,SwapBuffers,1929
|
||||
|
||||
.text.windows
|
||||
SwapBuffers:
|
||||
push %rbp
|
||||
mov %rsp,%rbp
|
||||
.profilable
|
||||
mov %rdi,%rcx
|
||||
sub $32,%rsp
|
||||
call *__imp_SwapBuffers(%rip)
|
||||
leave
|
||||
ret
|
||||
.endfn SwapBuffers,globl
|
||||
.previous
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue