question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Calling MakeCurrent() when no context is created crashes the window.

See original GitHub issue

When creating a gamewindow for vulkan, and one decides to disable contexts using Glfw.WindowHint(Hint.ClientApi, ClientApi.None);, the app crashes with a The specified window has no contex error at MakeCurrent() in the constructor. Currently, the only way to use vulkan is if you use the raw functions to create and manage the window.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
emmausscommented, Mar 22, 2019

The thing is, GameWindow would always call MakeCurrent in it’s constructor. and if you make a contexted gl window, vulkan can’t render to it as it is owned by ogl.

0reactions
emmausscommented, Apr 8, 2019

thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Qt QOpenGLWidget crash when call glewInit() with error
I found that the problem is context is not created, and when the program call function initializeGL(). The solution that I did is...
Read more >
QOpenGLContext::makeCurrent, UD2 crash when resizing ...
Using a custom build of 5.14.1, in our main render loop when resizing the application window, it immediately crashes. This function fails:
Read more >
WinGLContext.MakeCurrent fails with error code 2004 #3196
The issue seems to be that BlockonUIThread tries to make the OpenGL graphics context current while the draw thread is using the context...
Read more >
Application throws a fatal error when trying to render a ...
My first problem with LWJGL was when I tried to create a window and it crashed. I pin-pointed the problem to the createWindow()...
Read more >
Multiple function crashes - need help!
I am creating a game and have gotten to the point of drawing stuff on the screen now. However, I am getting crashes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found