I've been playing with the window-opengl.cpp example, using SFML 1.3.
The unmodified program runs just fine, but trying to set the window to fullscreen produces a horrible crash. The modified line of code is :
sf::Window App(sf::VideoMode(1024, 768, 32), "SFML OpenGL", sf::Style::Fullscreen);
And the output is:
Failed to get the list of available video modes
The requested video mode is not available, switching to a valid mode
Failed to get the list of available video modes
Failed to get the list of available video modes
Fullscreen is not supported, switching to window mode
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 1 (X_CreateWindow)
Value in failed request: 0x0
Serial number of failed request: 51
Current serial number in output stream: 53
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0x7ff92ad8997c]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x15) [0x7ff92ad89a15]
#2 /usr/lib/libX11.so.6 [0x7ff92cd9f420]
#3 /usr/lib/libGL.so.1 [0x7ff92f0675c6]
Some extra information:
- I'm using 2 screens and a NVIDIA video card (propietary driver)
- I'm not using a TwinView setup, and the XRandR isn't available.
- Doing the equivalent action using SDL works directly, same with games, and same with everything else.
- The OS is Debian GNU/Linux "sid" (unstable)
Please suggest me what to do since I'm trying to port an application from SDL to SFML. Thanks.