Skip to content

Commit 3f4e4cd

Browse files
committed
NUKE useless buffer unmapping and R_SyncRenderThread() in material system
Deleting the buffer automatically unmaps it.
1 parent ac986c1 commit 3f4e4cd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/engine/renderer/Material.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,17 +1729,7 @@ void MaterialSystem::Free() {
17291729
texData.clear();
17301730
dynamicTexData.clear();
17311731

1732-
R_SyncRenderThread();
1733-
1734-
surfaceCommandsSSBO.UnmapBuffer();
1735-
culledCommandsBuffer.UnmapBuffer();
1736-
atomicCommandCountersBuffer.UnmapBuffer();
1737-
texDataBuffer.UnmapBuffer();
1738-
lightMapDataUBO.UnmapBuffer();
1739-
17401732
if ( totalPortals > 0 ) {
1741-
portalSurfacesSSBO.UnmapBuffer();
1742-
17431733
for ( PortalView& portalView : portalStack ) {
17441734
memset( portalView.views, 0, MAX_VIEWS * sizeof( uint32_t ) );
17451735
portalView.count = 0;

0 commit comments

Comments
 (0)