SFML community forums

Help => Graphics => Topic started by: sirGustav on September 26, 2009, 08:15:52 pm

Title: white sprites in sfml2 samples
Post by: sirGustav on September 26, 2009, 08:15:52 pm
revision: 1223
os: xp

wxWidget-, postfx- & pong- -samples get white textures, Open-GL-sample seems to work fine.

LoadFromFile returns true, atleast when I'm debugging the wxWidgets-project.

<edit>
glTexSubImage2D gives a GL_INVALID_VALUE in Image::EnsureTextureUpdate()

gluBuild2DMipmaps doesn't return any error and when I'm using that instead of the original function everything looks to work as expected.

The prebuilt 1.5 version works
</edit>
Title: white sprites in sfml2 samples
Post by: Laurent on September 27, 2009, 11:24:16 am
Did you do a complete rebuild? Are your drivers up to date?

Do you see any difference between the glTexSubImage2D calls in both revisions (the broken one and the one that works)? As far as I know, I didn't change anything to this call.
Title: white sprites in sfml2 samples
Post by: sirGustav on September 28, 2009, 06:30:05 am
Quote from: "Laurent"
Did you do a complete rebuild?

yes

Quote
Are your drivers up to date?
now they are, and the problem dissapeared, sorry should have done that earlier :oops:

On another note, why is the opengl "error handling" disabled in release?

If you don't want to enable it in release, you might consider using OutputDebugString() in visual studio(don't know how other windows compilers works in this regard) builds to print to the output window instead of cerr.
Title: white sprites in sfml2 samples
Post by: Laurent on September 28, 2009, 07:50:32 am
Quote
On another note, why is the opengl "error handling" disabled in release?

Because it's a debugging feature that you don't need in a release build. If it was enabled in release mode it would also have a significant impact on performances.
Title: white sprites in sfml2 samples
Post by: sirGustav on September 29, 2009, 07:53:32 am
ok, thanks for the clarification and support :)