Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: in typeassert, expected Type, got a value of type Ptr{Nothing} #479

Closed
SimonDanisch opened this issue May 5, 2021 · 1 comment

Comments

@SimonDanisch
Copy link

Julia 1.6
JuliaInterpreter v0.8.14

MWE:

using JuliaInterpreter, GLFW, ModernGL

function gen_buffers()
    result = GLuint[0]
    ModernGL.glGenFramebuffers(1, result)
    id = result[1]
    if id <= 0
        error("glGenFramebuffers returned invalid id. OpenGL Context active?")
    end
    return id
end

function test()
    w = GLFW.Window()
    gen_buffers()
end

@interpret test()
@KristofferC
Copy link
Member

This is where it errors:

https://github.com/JuliaGL/ModernGL.jl/blob/f98fa07f9a2880bac381ec1398e1af52f9859252/src/functionloading.jl#L64

pfitzseb added a commit that referenced this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants