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

Author Topic: RenderWindow fails on Linux  (Read 3158 times)

0 Members and 1 Guest are viewing this topic.

DavidKarlas

  • Newbie
  • *
  • Posts: 5
    • View Profile
RenderWindow fails on Linux
« on: May 18, 2013, 10:43:21 am »
Hello all,

first i would like to thank Laurent for this amazing library.

Now to problem... I believe ever since this commit: https://github.com/SFML/SFML.Net/commit/62b70062549feee97123ee13735b634f5f88400f
RenderWindow class is not working on Linux. It writes this in console and exit program when i start shader.cs(example program).
Code: [Select]
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  8 (X_MapWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  50
  Current serial number in output stream:  51

On windows it's working just fine. I also tried to create C program and call sfWindow_createFromHandle(0, &cS); and throws same error.

Now i'm not sure what sfWindow_createFromHandle(IntPtr.Zero, contextSettings) is ment to do. Ignore parameter and create new window or...
Is this bug in CSFML/SFML for not working same on Linux/Windows?
I would fork and fix this but i'm really not sure what proper solution is.. :(

Best regards,
David

DavidKarlas

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: RenderWindow fails on Linux
« Reply #1 on: May 18, 2013, 12:19:10 pm »
Hello again,

i found what was problem. It was wrong costructor being called.
I made fork and pull request https://github.com/SFML/SFML.Net/pull/18.

Regards,
David

 

anything