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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ColinDuquesnoy

Pages: [1]
1
Graphics / Re: sfml2.0-rc pushStates/poStates crash (with Horde3d)
« on: December 20, 2013, 12:07:14 pm »
The above fix works and have been tested on Windows Xp and Linux Mint 16.

However I am not sure where to report the bug/fix? Should I submit a pull request that add glClientActiveTexture to sf::RenderTarget::resetGLStates or should I report it on the Horde3D issue tracker?

2
Graphics / Re: sfml2.0-rc pushStates/poStates crash (with Horde3d)
« on: December 20, 2013, 09:46:47 am »
I had the exact same issue. I managed to fix it by turning on the texture unit 0 before calling window.resetGLStates()

pSfmlWindow->clear();

// Render horde3D scene
app->mainLoop( benchmark ? 60 : fps );

// Explicitely enable texture unit 0!
glClientActiveTexture(GL_TEXTURE0);
glActiveTexture(GL_TEXTURE0);
pSfmlWindow->resetGLStates();

// render SFML scene
pSfmlWindow->draw(text);  // text is a sf::Text
pSfmlWindow->draw(sprite); // sprite is a sf::Sprite

Pages: [1]