code-disaster / steamworks4j

A thin Java wrapper to access the Steamworks API
https://code-disaster.github.io/steamworks4j/
MIT License
468 stars 64 forks source link

Overlay not Showing when using Steamworks4J via libGDX/ANGLE #111

Closed noblemaster closed 2 years ago

noblemaster commented 2 years ago

No Steam overlay (or any overlaid graphics) is shown when running libGDX via ANGLE-framework (Windows 10, Java 8 64bit).

lwjgl3Configuration.setOpenGLEmulation(GLEmulation.ANGLE_GLES20, 2, 0)

The SteamAPI initializes just fine. Also, I can login, e.g. via getAuthSessionTicket or retrieve the friends list via getFriendByIndex without problems. I can obtain images via getImageRGBA also. Everything seems to work, it's just that no overlay is shown at all. There are no errors.

Disabling the above line gets everything working again. The overlay works as expected. Is there anything I can try? Windows has made it more and more difficult to get a game working via OpenGL directly due to driver issues over the past year, So I think over time having this working via ANGLE would be great.

noblemaster commented 2 years ago

Never mind: reading through the Steamworks documentation, at https://partner.steamgames.com/doc/features/overlay, it seems one has to initialize Steam before initializing libGDX. It's working as long as the initialization happens before libGDX is initialized.