You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to create a standalone context to use under pygame, but whenever I used that context it would break pygame's display and I'd just get a blank screen. I assume that pygame was using gl in its back-end even though I wasn't asking to use its gl context from moderngl.
It turns out I needed to wrap my work in a with context block, which is an idea I got from a random page I saw using it, but I don't really know why. Or more imporantly, I don't know what the rule is saying when or why I should do this. None of the examples do it.
Is this canonical, or is it just a weird, lucky side effect that it made things work in my case?
The text was updated successfully, but these errors were encountered:
I wanted to create a standalone context to use under pygame, but whenever I used that context it would break pygame's display and I'd just get a blank screen. I assume that pygame was using gl in its back-end even though I wasn't asking to use its gl context from moderngl.
It turns out I needed to wrap my work in a
with context
block, which is an idea I got from a random page I saw using it, but I don't really know why. Or more imporantly, I don't know what the rule is saying when or why I should do this. None of the examples do it.Is this canonical, or is it just a weird, lucky side effect that it made things work in my case?
The text was updated successfully, but these errors were encountered: