Skip to content

[Question] IInputContext + IWindow + GL #1225

Answered by Perksey
tilkinsc asked this question in Q&A
Discussion options

You must be logged in to vote

It is illegal to create an input context for an uninitialized window due to internal state not being guaranteed. It needs to be after Initialize/Run

Likewise, it is illegal to call window.CreateOpenGL/GL.GetApi with an uninitialized window due to the state of IGLContextSource.Context not being guaranteed. However, you can call it any time after Initialize/Run.

Hope this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tilkinsc
Comment options

Answer selected by Perksey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1223 on January 15, 2023 10:53.