SFML community forums

Help => Graphics => Topic started by: gabrieljt on January 28, 2014, 12:15:28 am

Title: SFML Game Development Book - Chapter 8: Graphics Crash
Post by: gabrieljt 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.
Title: Re: SFML Game Development Book - Chapter 8: Graphics Crash
Post by: Nexus 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 (http://www.bromeon.ch/libraries/thor/v2.0/doc/classthor_1_1_big_texture.html) class, but it doesn't provide all the features of sf::Texture (yet).
Title: Re: SFML Game Development Book - Chapter 8: Graphics Crash
Post by: gabrieljt 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 :)