Ticket #136 (new defect)
If Win32Window::activate() fails, a crash may follow
| Reported by: | marcusl | Owned by: | unassigned |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | System | Version: | 2.0 |
| Keywords: | Cc: |
Description
If no gl-context is available for thread, the glGetString(GL_EXTENSIONS) returns null, which isn't handled correctly.
The right way would be to check if activate() succeeds and not try to render if it doesn't, something like the following (without calling activate twice)
m_win->activate();
if (wglGetCurrentContext()) {
m_win->render(m_action);
}
I get this when I try to render from a different thread than what I created the window in. (I'm working on the actual cause for this, noticing the brittle error handling in the process.)
Change History
Note: See
TracTickets for help on using
tickets.
