daily update on 20240403 by nitload youmu
This commit is contained in:
@@ -60,13 +60,10 @@ namespace StgSharp.Graphics
|
||||
/// </summary>
|
||||
/// <param name="form">The <see cref="Form"/> used as current OpenGL context</param>
|
||||
/// <param name="loader">A delegate to get address of OprnGL api</param>
|
||||
public static unsafe void LoadGLapi(this Form form, GLfuncLoader loader)
|
||||
public static unsafe void LoadGLapi(this Form form)
|
||||
{
|
||||
GLcontext* context = (GLcontext*)form.graphicContextID;
|
||||
if (loader == null)
|
||||
{
|
||||
loader = InternalIO.glfwGetProcAddress;
|
||||
}
|
||||
GLfuncLoader loader = InternalIO.glfwGetProcAddress;
|
||||
#pragma warning disable CS8909
|
||||
if (((GLcontext*)form.graphicContextID)->glGetString != (delegate*<uint, IntPtr>)IntPtr.Zero)
|
||||
#pragma warning restore CS8909
|
||||
|
||||
Reference in New Issue
Block a user