I'm having problems getting SFML to create a RenderWindow with a valid depth buffer on linux, using the constructor that takes an existing window handle (it's being embedded in a wxWidgets application).
No matter what context settings I request, it will always create a context without a depth buffer. It seems to work fine when creating a RenderWindow on its own via the other constructor (the one that takes a VideoMode etc.)
The code I'm using to create the window can be found
here.
It works fine in Windows (not macOS, but then I've never been able to get it to work at all there), it just seems to be a linux issue. It's also nothing to do with the graphics driver as I am getting the issue on both an intel iris integrated gpu and an nvidia gtx 970.
I get the following output when it tries to create the context:
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.0 ; depth bits = 24 ; stencil bits = 8 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
Created: version = 3.0 ; depth bits = 0 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false ; sRGB = false
Any ideas what it might be?