Skip to content

Commit 468abd5

Browse files
committed
Always enable glConfig.usingReadonlyDepth on AMD + bindless textures
1 parent 3d9f6c6 commit 468abd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/engine/renderer/tr_init.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,11 @@ ScreenshotCmd screenshotPNGRegistration("screenshotPNG", ssFormat_t::SSF_PNG, "p
14321432
break;
14331433
}
14341434

1435+
if ( glConfig.usingBindlessTextures && glConfig.hardwareVendor == glHardwareVendor_t::ATI ) {
1436+
glConfig.usingReadonlyDepth = true;
1437+
Log::Notice( "Using read-only depth buffer copy because bindless textures are being used on AMD hardware" );
1438+
}
1439+
14351440
if ( glConfig.usingReadonlyDepth && !r_depthShaders.Get() )
14361441
{
14371442
Log::Warn( "Disabling read-only depth buffer because depth pre-pass is disabled" );

0 commit comments

Comments
 (0)