Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: ContextWGL crash after updating from 1.5 to 2.0 beta  (Read 12298 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #15 on: February 20, 2010, 10:17:46 am »
No, sorry. It's hard to fix as it involves changing a lot of things in SFML.
Laurent Gomila - SFML developer

GamerSg

  • Newbie
  • *
  • Posts: 2
    • View Profile
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #16 on: June 21, 2010, 04:31:18 pm »
Hi Laurent

  Firstly great work on SFML, its a breeze to use and gets the job done.

This problem however seems to affect all ATI users and affects a very large number of people. Im not sure whether the problem lies in SFML's code or ATI's drivers, however my guess is that it is likely SFML given the large number of OpenGL Applications which don't have this problem.

Im not familiar with the SFML source code, but if you want, i am willing to help you investigate further and root out the problem. Im sure there should be some way(hack if needed) to prevent this error.

If you are aware of the problem, maybe you could explain it here, so that we can try and come up with a solution.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #17 on: June 21, 2010, 05:10:34 pm »
I'm not 100% sure, but I think that the ATI driver doesn't like my global OpenGL contexts.

I don't know who's wrong (I don't think that the OpenGL spec says something about this), but the only solution would be to create the main SFML context explicitely.

So if you want to help you can start by trying this solution, to make sure that it really solves the problem. The global contexts are declared in SFML/src/Window/GlContext.cpp. The second one can easily be removed and replaced with a sf::Context instance at the beginning of main(), but for the first one (the "reference context") you might have to hack a little bit :)
Laurent Gomila - SFML developer

GamerSg

  • Newbie
  • *
  • Posts: 2
    • View Profile
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #18 on: June 23, 2010, 08:36:47 am »
Ill have a look when i have the time. Thanks.

arpeggiodragon

  • Newbie
  • *
  • Posts: 10
    • View Profile
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #19 on: August 11, 2010, 06:09:49 am »
Hi. Was a solution to this problem ever found? I'm using SFML 2.0 and experience this same crash with static linking on an Intel card. Is there a fix for this?

Thanks.

[EDIT] I missed reading the second page. So a fix might be in GLContext.cpp? I'll have a look even though I don't quite understand what needs to be changed.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #20 on: August 11, 2010, 08:42:49 am »
There's no fix yet, sorry.
Laurent Gomila - SFML developer

arpeggiodragon

  • Newbie
  • *
  • Posts: 10
    • View Profile
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #21 on: August 11, 2010, 09:58:33 am »
Ouch.
I'd be happy to help test this if you devise a fix for this issue. I also have an ATI Radeon card on my other computer, although I would have to check that it crashes first on that card.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
ContextWGL crash after updating from 1.5 to 2.0 beta
« Reply #22 on: August 11, 2010, 10:05:21 am »
Ok, thanks :)
Laurent Gomila - SFML developer

 

anything