@@ -15,11 +15,11 @@ internal static class GL
1515 public const uint TRIANGLES = 0x4 ;
1616
1717 [ SuppressGCTransition ]
18- [ DllImport ( "opengl32" , EntryPoint = "wglCreateContext " ) ]
18+ [ DllImport ( "opengl32" , EntryPoint = "_wglCreateContext@4 " ) ]
1919 public static extern nint CreateContext ( nint hdc ) ;
2020
2121 [ SuppressGCTransition ]
22- [ DllImport ( "opengl32" , EntryPoint = "wglMakeCurrent " ) ]
22+ [ DllImport ( "opengl32" , EntryPoint = "_wglMakeCurrent@8 " ) ]
2323 public static extern bool MakeCurrent ( nint hdc , nint ctx ) ;
2424
2525 [ SuppressGCTransition ]
@@ -31,19 +31,19 @@ internal static class GL
3131 public static extern void Clear ( uint mask ) ;
3232
3333 [ SuppressGCTransition ]
34- [ DllImport ( "opengl32" , EntryPoint = "wglGetProcAddress " ) ]
34+ [ DllImport ( "opengl32" , EntryPoint = "_wglGetProcAddress@4 " ) ]
3535 public static unsafe extern void * GetProcAddress ( byte * name ) ;
3636
3737 [ SuppressGCTransition ]
38- [ DllImport ( "opengl32" , EntryPoint = "glDrawArrays " ) ]
38+ [ DllImport ( "opengl32" , EntryPoint = "_glDrawArrays@12 " ) ]
3939 public static extern void DrawArrays (
4040 uint mode ,
4141 int first ,
4242 int count
4343 ) ;
4444
4545 [ SuppressGCTransition ]
46- [ DllImport ( "opengl32" , EntryPoint = "glViewport " ) ]
46+ [ DllImport ( "opengl32" , EntryPoint = "_glViewport@16 " ) ]
4747 public static extern void Viewport ( int x , int y , uint width , uint height ) ;
4848
4949 [ SuppressGCTransition ]
0 commit comments