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

Author Topic: SFML2 crashes on RenderWindow::Draw()  (Read 4986 times)

0 Members and 2 Guests are viewing this topic.

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
SFML2 crashes on RenderWindow::Draw()
« on: June 29, 2009, 09:00:09 am »
My simple test application that just drawes a sprite worked fine on my rather old notebook when I used SFML-1.5. On SFML-2 it crashes when I'm trying to draw a sprite. What has changed in graphics in SFML-2 that may cause this crash? The same application works fine on more modern PCs. I'm using SVN source updated at jun-28-2009.

Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML2 crashes on RenderWindow::Draw()
« Reply #1 on: June 29, 2009, 09:47:48 am »
Ok I see. Can you try revision 1136?
Laurent Gomila - SFML developer

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
SFML2 crashes on RenderWindow::Draw()
« Reply #2 on: June 29, 2009, 11:30:06 am »
I've found the difference between rev.1136 and 1137 in Drawable::Draw() that potentially might couse the problem. Now I'm checking out rev.1136. I'll let you know if it helps.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML2 crashes on RenderWindow::Draw()
« Reply #3 on: June 29, 2009, 12:28:31 pm »
Don't spend too much time trying to find what has changed, I already know what function is causing the crash. I just need you to confirm that r1136 is working ;)
Laurent Gomila - SFML developer

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
SFML2 crashes on RenderWindow::Draw()
« Reply #4 on: June 29, 2009, 01:14:17 pm »
I have tested rev.1136 on my notebook. It works!
BTW, my specs: Celeron, 1600 MHz, 480 Mb RAM, Radeon IGP 340M. OS XP sp2. It would be nice if this old toy could run SFML-2. I need its new features in my game project. :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML2 crashes on RenderWindow::Draw()
« Reply #5 on: June 29, 2009, 01:22:18 pm »
I was not sure if glBlendFuncSeparate was well supported by old hardware; now I have the answer :)

I'll try to find another way to achieve the same results. If you want to use SFML 2.0 you can just replace these calls with the previous version using glBlendFunc, you won't notice the difference unless you're rendering alpha-blended stuff to a RenderImage.

Thank you for your feedback.
Laurent Gomila - SFML developer

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
SFML2 crashes on RenderWindow::Draw()
« Reply #6 on: June 29, 2009, 01:29:23 pm »
Ok.
Thanks.

dabo

  • Sr. Member
  • ****
  • Posts: 260
    • View Profile
    • http://www.dabostudios.net
SFML2 crashes on RenderWindow::Draw()
« Reply #7 on: June 29, 2009, 08:15:00 pm »
Talking about old hardware, I found out my crappy intel chipset only supports opengl 1.4, will this be a problem using SFML 2.0?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML2 crashes on RenderWindow::Draw()
« Reply #8 on: June 29, 2009, 08:26:34 pm »
SFML only uses features of OpenGL 1.1.
Laurent Gomila - SFML developer