File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1227,6 +1227,12 @@ static void RenderDepthTiles()
1227
1227
return ;
1228
1228
}
1229
1229
1230
+ // Assume depth is dirty since we just rendered depth pass
1231
+ if ( glConfig2.textureBarrierAvailable ) {
1232
+ glTextureBarrier ();
1233
+ backEnd.dirtyDepthBuffer = false ;
1234
+ }
1235
+
1230
1236
// 1st step
1231
1237
R_BindFBO ( tr.depthtile1FBO );
1232
1238
GL_Viewport ( 0 , 0 , tr.depthtile1FBO ->width , tr.depthtile1FBO ->height );
@@ -1508,6 +1514,13 @@ void RB_RenderMotionBlur()
1508
1514
1509
1515
GLIMP_LOGCOMMENT ( " --- RB_RenderMotionBlur ---" );
1510
1516
1517
+ /* Assume depth is dirty since we just rendered depth pass and everything opaque,
1518
+ unless we have already rendered post-depth lighttile, which does this as well */
1519
+ if ( glConfig2.textureBarrierAvailable && backEnd.dirtyDepthBuffer ) {
1520
+ glTextureBarrier ();
1521
+ backEnd.dirtyDepthBuffer = false ;
1522
+ }
1523
+
1511
1524
GL_State ( GLS_DEPTHTEST_DISABLE );
1512
1525
GL_Cull ( cullType_t::CT_TWO_SIDED );
1513
1526
You can’t perform that action at this time.
0 commit comments