The International Simutrans Forum

 

Author Topic: Compilation error when compiling simsys_opengl.cc  (Read 183 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • *
  • Posts: 11
Compilation error when compiling simsys_opengl.cc
« on: October 31, 2018, 08:28:37 AM »
Hello,
in simsys_opengl.cc line 346 there's this:
Code: [Select]


S/*
 * Hier sind die Basisfunktionen zur Initialisierung der
 * Schnittstelle untergebracht
 * -> init,open,close
 */

which is a compilation error (the S should be removed). Apparently, nobody has tried compiling the OpenGL backend in more than 2 years...

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5374
  • Languages: EN, NO
Re: Compilation error when compiling simsys_opengl.cc
« Reply #1 on: October 31, 2018, 05:45:29 PM »
It is rather stupid anyway. The SDL2 backend seems to have fixed whatever problems it somehow managed to work around and should be preferable to this bastard of a backend. (I can call it that, because I made the core of it once.)

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2525
  • Languages: EN
Re: Compilation error when compiling simsys_opengl.cc
« Reply #2 on: October 31, 2018, 06:31:21 PM »
Just to make it clear, the OpenGL back end does not use hardware acceleration to speed up the game drawing the screen. It only uses OpenGL as a presentation layer to display the software drawn screen. Hence SDL2 is preferable as it does the same task and more.