hzqst / MetaHookSv

MetaHook (https://github.com/nagist/metahook) porting for SvEngine (GoldSrc engine modified by Sven-Coop)
MIT License
149 stars 38 forks source link

[Renderer] Adrenalin 23.7.1 (WHQL Recommended) glGetTextureHandleARB returns zero handle #300

Closed hzqst closed 1 year ago

hzqst commented 1 year ago

The issue was found present in Adrenalin 23.6.x and is still present in Adrenalin 23.7.1 (WHQL Recommended) (Release Date 7/6/2023)

Step to repro:

  1. Install Steam

  2. Install a free game called "Sven Co-op" from Steam store

  3. Download latest release from Releases · hzqst/MetaHookSv (github.com)

  4. Unarchive the "MetaHookSv-windows-x86.zip"

  5. Run "install-to-SvenCoop.bat", then close the notepad poped up

  6. Launch game from the generated shortcut link "MetaHook for SvenCoop"

  7. "Start New Game" -> Map -> 6doors (Whatever map you like, I am running 6doors.bsp)-> Start

  8. You got this textureless scene (That's because all bindless texture handles are zero for unknown reason)

hzqst008_1-1689845607473

  1. If you add "-nobindless" to the commandline of shortcut link "MetaHook for SvenCoop",  everything should be working. (like this)

hzqst008_0-1689845101585

  1. If you want to dig into the source code, follow the instruction of https://github.com/hzqst/MetaHookSv#build-instruction and https://github.com/hzqst/MetaHookSv#debugging

Then launch game with Renderer.dll compiled in Debug mode

hzqst008_3-1689846676217

Then you will likely to see all handles are returned as zero, this is probably why everything looks textureless and blue.

hzqst008_4-1689846841553

The exact same code works fine on Adrenalin 23.2.1 so it's probably something wrong with recent driver update.

hzqst commented 1 year ago

confirmed fixed in Adrenalin 23.10.1