Skip to content

Commit

Permalink
Fix glfwGetProcAddress interface
Browse files Browse the repository at this point in the history
  • Loading branch information
gadjalin committed Sep 18, 2024
1 parent f47f573 commit 19c8c11
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/glf90w.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3663,12 +3663,9 @@ function glfwGetProcAddress(procname) result(procaddr)

implicit none
character(len=*, kind=c_char), intent(in) :: procname
procedure(GLFWglproc), pointer :: procaddr
type(c_funptr) :: procaddr

type(c_funptr) :: c_procaddr

c_procaddr = c_glfwGetProcAddress(f_c_string(procname))
call c_f_procpointer(c_procaddr, procaddr)
procaddr = c_glfwGetProcAddress(f_c_string(procname))
end function glfwGetProcAddress

function glfwVulkanSupported() result(supported)
Expand Down

0 comments on commit 19c8c11

Please sign in to comment.