cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

hzqst008
Adept I

Bug Report: glGetTextureHandleARB returns 0 and reports GL_INVALID_OPERATION error

https://github.com/hzqst/MetaHookSv/blob/7c1bfeea1b567a6fbbd933aa521173f22f96b233/Plugins/Renderer/g...

 

 

hzqst008_0-1689758796940.png

hzqst008_1-1689758822353.png

 

 

Tested on Nvidia Geforce and Intel UHD 770, both of them work fine and gave me correct handle, so the integrity of texture object should be fine.

 

Minimum repro-able case: https://github.com/hzqst/MetaHookSv

 

It requires Steam and a free game called "Sven Co-op" to run.

 

(unfortunately I failed to re-pro this issue with a single file demo)

0 Likes
1 Solution

Hi @hzqst008 ,

Could you please try the latest driver ( Adrenalin 23.10.1) and let us know if the issue has been resolved?

Thanks.

View solution in original post

0 Likes
10 Replies
hzqst008
Adept I

This is my driver and device information

 

 

hzqst008_0-1689762722803.png

 

hzqst008_1-1689762739211.png

 

btw iirc the issue didn't exist in driver 2023.02.14 (23.2.1).

0 Likes

Hi @hzqst008 ,

Thanks for reporting it and providing the repro. I will forward the issue to the OpenGL team.

Thanks.

0 Likes

Hi @hzqst008 ,

Could you please try the latest public driver available here and share your observation?

If the issue still persists, please provide the following information to help us reproduce it locally.

1) steps to reproduce the issue,  2) any screenshot or video that demonstrates the issue

Thanks.

0 Likes

The issue 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.png

 

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

hzqst008_0-1689845101585.png

10. 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.png

 

and with Visual Studio debugger.

Place a breakpoint inside gl_wsurf.cpp!R_CreateBindlessTexturesForWorld

hzqst008_2-1689846603275.png

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

hzqst008_4-1689846841553.png

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

0 Likes

Thanks for the above information. I will share it with the OpenGL team.

0 Likes

Hi @hzqst008 ,

The OpenGL team was able to reproduce the issue. They have filed an internal bug ticket to track this issue. I will let you know if I get any update on this.

Thanks.

0 Likes

Update:

The OpenGL team has implemented a fix for this issue.

Thanks.

0 Likes

Hi @hzqst008 ,

Could you please try the latest driver ( Adrenalin 23.10.1) and let us know if the issue has been resolved?

Thanks.

0 Likes

It's confirmed that  Adrenalin 23.10.1 fixed the issue. thanks!

Thanks for the confirmation.

0 Likes