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

Author Topic: SFML Game Development Book - Chapter 8: Graphics Crash  (Read 1741 times)

0 Members and 1 Guest are viewing this topic.

gabrieljt

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
SFML Game Development Book - Chapter 8: Graphics Crash
« on: January 28, 2014, 12:15:28 am »
Hello there,

The jungle texture gives me an error about it's size, an exception from the ResourceHolder.

So I compiled the code using the desert texture, and got the following crash and error when entering the GameState (Selecting "Play" from the MenuState).

Quote
08_Graphics: ../../../../../../../src/mesa/drivers/dri/i915/i915_fragprog.c:1226: i915BindProgram: Assertion `p->params_uptodate == 0' failed.
Aborted

And it stalled a little before crashing.

Could it be my card?
It is a crappy GMA950.

Chapter 7 went ok.
I have not studied chapter 8 yet, just wanted to see how it looks like, so I don't know what the cause may be.

Thanks for the advice.
« Last Edit: January 28, 2014, 12:18:10 am by gabrieljt »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML Game Development Book - Chapter 8: Graphics Crash
« Reply #1 on: January 28, 2014, 12:41:15 am »
Your graphics card does probably not support textures of this size. There is a hardware limit, which you can get with sf::Texture::getMaximumSize().

There are workarounds such as my thor::BigTexture class, but it doesn't provide all the features of sf::Texture (yet).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

gabrieljt

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Re: SFML Game Development Book - Chapter 8: Graphics Crash
« Reply #2 on: January 28, 2014, 02:06:04 am »
I see...

time to upgrade my buy a new notebook anyways.

Going to study OpenCL in the next 6 months.

Thanks for the info :)
« Last Edit: January 28, 2014, 02:08:21 am by gabrieljt »