Welcome, Guest.
Username: Password: Remember me

TOPIC: OpenGL problems with ReShade 4.0

OpenGL problems with ReShade 4.0 10 months 3 days ago #1

Having issues with the new ReShade 4.0 release in OpenGL games. The games worked with the previous release 3.4.1.

Games List with Video and log
Prey 2006 - GL error game refuses to start.

pastebin.com/WarNGyuM

Quake 4 - Same as Prey GL error

pastebin.com/h0E2688S

Quake Epsilon running on DarkPlaces - Starts Up: But Problems with missing effects in game. Also, if I turn my shader on it CTD.

pastebin.com/HXUCFf6Y

I am assuming it effects mostly all older OpenGL Games.
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
Last Edit: 10 months 3 days ago by BlueSkyKnight.
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 10 months 3 days ago #2

Rage32 - Gives Error: Run Time error MV C++

pastebin.com/Hahs689B

Rage64 - Starts up then CTD

pastebin.com/amJrMeLk

SOMA - Black Screen on startup
pastebin.com/CKAyf7t8

Amnesia: Machine for Pigs - Give Error: No matching GL Pixel formant

pastebin.com/XCEYdDqu

Someone else on the forum also listed Diablo 2 a OpenGL game that not working anymore. I don't have that game to test.

Wolfenstein: The New Order- seems unaffected. Until you play the game and this problem shows up. Even when you turn off your shaders in game.


DOOM seems to be not affected other than clicking ReShade menu is hard to do and I have to use the workaround used in older games such as Quake 4, Doom 3, and Prey to be able to interact with the ReShade menu. This is done by opening the in-game console to interact with it.
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
Last Edit: 10 months 3 days ago by BlueSkyKnight.
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 10 months 3 days ago #3

There have been zero changes to the OpenGL hooking code, except for an accidental context version force to 4.5 instead of 4.3, which only affects modern OpenGL titles and not old ones (this is reverted und fixed in 4.0.1). I don't see how ReShade is responsible for Windows failing to set up the pixel format (the parameters look sensible). I tried to rrun Quake on my machine and it works fine with both 4.0 and 4.0.1 for me.

There is one other OpenGL bug fixed in 4.0.1 which had to do with ReShade not resetting a state correctly after it finished rendering. This affected rendering results in some games.

The crash you saw when turning on your shader was a driver crash due to the ReShade FX compiler generating an infinite loop. This is fixed in 4.0.1 as well.
Cheers, crosire =)
Last Edit: 10 months 3 days ago by crosire.
The administrator has disabled public write access.
The following user(s) said Thank You: Aelius Maximus, BlueSkyKnight

OpenGL problems with ReShade 4.0 10 months 3 days ago #4

Thank you crosire.

I will be testing the new release.
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
The administrator has disabled public write access.
The following user(s) said Thank You: Aelius Maximus

OpenGL problems with ReShade 4.0 10 months 3 days ago #5

Ok looks like you fixed almost all the games on the list.

I will be listing what works and what does not work.

Fixed Games
SOMA - No more solid black screen
Wolfenstein: The New Order - No more graphics abnormality.
Quake Epsilon running on DarkPlaces - No more graphics abnormality & No more CTD when selecting my shader.
Rage64 - No more CTD

Games With issues
Rage32

pastebin.com/rpaArrYR

Prey 2006

pastebin.com/VMyZqDT5

Quake 4

pastebin.com/2d2V70H3

That seems to be about it. Two of the games are basically running on the same engine.
Quake 4 and Prey 2006 run the id Tech 4. So I also tested Doom3 for a sanity check.
Sure enough same problem.
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 10 months 3 days ago #6

As for Amnesia: A Machine for Pigs I did more testing with the older game Amnesia: Dark Descent I also game the same error. The error does not happen with 3.4.1. I noticed 3.0.8 also has the same problem as the new version. So I redownloaded the game to make sure. Still, have the same problem.

Amnesia: A Machine for Pigs

pastebin.com/Tpp0VjjE - Not Working 4.0.1
I wonder what caused this error to pop up.
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 8 months 1 day ago #7

Quick Update for ReShade 4.1.0

So a workaround, for now, to use ReShade 4.1.0 in the game Amnesia: A Machine for Pigs.
Is to change the "opengl32.dll to dxgi.dll"

This will allow you to use ReShade 4.1.0 in this OpenGL game. I assume this will also work with the other games as well.

For some reason, it's not working when you try to load with the opengl32.dll on windows 10
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
Last Edit: 8 months 1 day ago by BlueSkyKnight.
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 7 months 4 weeks ago #8

Yeah, this sounds a lot like some Windows 10 compatibility layer interfering again. Will try and reproduce in Win10 (since things work on Win7).
Cheers, crosire =)
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 7 months 4 weeks ago #9

I can confirm this workaround works with CoD1 ( id-tech 3 ) but when used it creates artifacting - curious to know if other opengl titles show this.
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 7 months 3 weeks ago #10

I hoped that this version would work with my IL-2, but alas, as soon as you start setting up ReShade in a game, the screen is dark. It used to work very successfully with version 4.1.0, but after installing version 4.0.2, everything stopped working and now any version of the 4th series does not work. I can not understand the reason ???. Works only with version 3.4.1.
Thanks for the work!
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 6 months 3 weeks ago #11

Oh boy this was an interesting one to debug ...

TLDR: It's fixed now.

Full explanation: ReShade has had a linker optimization called COMDAT folding active for a long time now. What this does is attempt to merge functions which do the same thing into a single function to save space. Unfortunately the optimizer wrongly merges a few functions together, which rely on being separate. In this concrete case it merged the two DLL exports "wglDescribePixelFormat" and "DXGID3D10CreateDevice" into a single one. This is obviously wrong because the call two completly different functions internally, but at object level they look the same. But what this means is now every time "wglDescribePixelFormat" is called, it instead calls "DXGID3D10CreateDevice" which does something completly different. On Windows 10 the "wglChoosePixelFormat" function is internally implemented as a loop over "wglDescribePixelFormat". Since ReShade overwrote that function it didn't do what Windows expected and fails, which causes "wglChoosePixelFormat" to fail and produce all the different errors these games were reporting.
So there is nothing wrong in the ReShade source code. Which is also why it used to work before. The optimizer just so happened to merge these functions this time during build. I just got lucky that it never did so before.
This optimization is now disabled, which fixes the build and ReShade behaves as intended again: github.com/crosire/reshade/commit/c8f0d5...c08ad529ff2d3f460e73.
Cheers, crosire =)
The administrator has disabled public write access.
The following user(s) said Thank You: BlueSkyKnight

OpenGL problems with ReShade 4.0 6 months 3 weeks ago #12

Thank you.

Everything seems to work now as normal.
My GitHub page where you can get the Latest release of SuperDepth3D github.com/BlueSkyDefender/Depth3D

My PayPal Me Link If you like to donate paypal.me/BlueSkyDefender

Also my steam page steamcommunity.com/id/BlueSkyDefender

Discord Server discord.gg/W2f7YhX
The administrator has disabled public write access.

OpenGL problems with ReShade 4.0 3 weeks 1 day ago #13

I still get crashing with the regular DOOM 3 (not DOOM 3 BFG) and Quake 4, the same crash BlueSkyDefender has demonstrated in his YouTube videos with the latest stable public release of Reshade (4.3.0)

Any workarounds for this?
The administrator has disabled public write access.