Calling MakeCurrent() when no context is created crashes the window.
See original GitHub issueWhen 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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
thanks