Hi.
I'm trying to use Nuklear with SFML (see
https://github.com/vurtun/nuklear/blob/master/demo/sfml_opengl3/main.cpp). Nuklear requires a particular specification of ContexSettings:
sf::ContextSettings settings(24, 8, 4, 3, 3);
However, when this ContexSettings is used, it causes sprites to not render. I've isolated the issue to the following sample code:
#include <SFML/Graphics.hpp>
int main() {
sf::ContextSettings settings(24, 8, 4, 3, 3);
sf::RenderWindow window(sf::VideoMode(800, 600), "Demo", sf::Style::Default, settings);
sf::Texture texture;
if (!texture.loadFromFile("res/tex/logo.png")) exit(-1);
sf::Sprite sprite(texture);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed) window.close();
}
window.clear(sf::Color::Black);
window.draw(sprite);
window.display();
}
return 0;
}
if I ignore the ContexSettings, e.g.
sf::RenderWindow window(sf::VideoMode(800, 600), "Demo", sf::Style::Default/*, settings*/);
then my sprite renders fine (but nuklear doesn't work).
What exactly is it about those ContextSettings that causes my sprite to not render?
Thanks!