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

Author Topic: Error while creating sf::RenderWindow with size (0,0)  (Read 1325 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
Error while creating sf::RenderWindow with size (0,0)
« on: September 30, 2017, 01:39:40 am »
i found a problem with RenderWindow (or my software). When i try to set it's size for (0,0), the app crashes. I found it when i was porting my game on Linux from Windows. On Windows this problem doesn't occur (at least for me).

OS: Linux Mint 18.2
Compiler: g++ 5.4.0
SFML: 2.4.2

I had build SFML from source by myself, as a Linux build from official builds doesn't work for me.

Code to reproduce issue:
#include <SFML/Graphics.hpp>

int main()
    sf::RenderWindow window(sf::VideoMode(0,0), "Error");
    return 0;

Error message:

« Last Edit: September 30, 2017, 09:00:35 am by seba174 »