afwbkbc / glsmac

Unofficial open-source OpenGL/SDL2 reimplementation of Sid Meier's Alpha Centauri ( + Alien Crossfire )

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[VS-Clang] Tile lookup doesn't update ingame

tsunamistate opened this issue · comments

OS: Windows 11
IDE: Visual Studio 2022 17.4.4
Compiler: Clang 15.0.1
System specs: AMD Ryzen 2600X / Radeon RX590 / 16 GB RAM

Steps to reproduce:

  1. Open Visual Studio and open glsmac folder with it. Wait until CMake configuration finishes
  2. Use Build -> Build All or Ctrl+Shift+B shortcut to compile an executable
  3. Open a shell (Powershell or CMD) and navigate to executable's path: <project root>\out\build\x64-debug-win-clang\bin
  4. Start a command to execute GLSMAC with game path GLSMAC.exe <smac_directory>
  5. Click Quick Start to generate a map
  6. Click on any tile

Actual result:
Debug console has messages like <Task::World::#40537> Looking up tile at 261x442 but game UI doesn't update with tile information

2023-02-12_14-54-31.mp4

Expected result:
Game UI shows tile information after clicking on it

So far I couldn't reproduce it. I tried on 3 different PCs with different GPUs (Nvidia GTX1070, Radeon R7 and Intel 4500U), tile selection works correctly. All of them run Linux, tho. I also compiled windows version inside VirtualBox, then managed to run it on Radeon R7 computer through wine, and tile selection worked too.
I'll try to get some Windows computer next week, maybe it's drivers.

I'm on archlinux with AMD gpu and it seems to work for me too

I fixed some FBO-related code in b272f74, give it a try.

Would be really cool to find at least one more person with this problem, and to know his OS and hardware... I bet it's related to Windows 11 but can't reproduce it because I can't install it.

Finally fixed in 9a94b60 + c1b3495, ty schombert for pointing me in right direction :)