Is this some example code? Because the VideoMode shouldn't be empty.
Are you calling sfRenderWindow_create yourself?
Can you provide an example of this behavior?
I just pulled and built CSFML and SFML.NET, and the following program builds and runs without any errors (Arch Linux, x64):using SFML.Graphics;
using SFML.Window;
static class Program
{
public static void Main(string[] args)
{
var rw = new RenderWindow(new VideoMode(800, 600, 24), "test", Styles.Default);
rw.Clear();
rw.Display();
}
}
I have SFML 2.4.2 installed.
I compiled CSFML and SFML.NET master branches.
I added a bit more code to make it easier to see the results of running the test.
(Had to upload to my dropbox - too large for the forums)
CSFML libs (https://www.dropbox.com/s/ovpgilfehwvbxdw/csfmllibs.tar.gz?dl=1)
SFML.NET libs (https://www.dropbox.com/s/ep4jtg7hx2t6740/sfmlnetlibs.tar.gz?dl=1)
test program (https://www.dropbox.com/s/8k0s7zo65saeqik/testproject.tar.gz?dl=1)
Need mono installed for mcs if you want to make the test program yourself.
Also, should mention: I had to make symlinks for the csfml libs in the format: "libcsfml-<module>-2.so" myself, as that's what the DllImports are looking for (Windows style, instead of the Linux style of libcsfml-<module>.so.<version>).
Depending what distro you're on, the libraries I uploaded may not work, fyi.