Skip to content

Commit 2bee649

Browse files
committed
Work count X is unrelated to the local size here
1 parent 659b6cd commit 2bee649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GPU3D_Compute.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ void ComputeRenderer::RenderFrame(GPU& gpu)
962962

963963
// bin polygons
964964
glUseProgram(ShaderBinCombined);
965-
glDispatchCompute(((gpu.GPU3D.RenderNumPolygons + CoarseTileArea - 1) / CoarseTileArea), ScreenWidth/CoarseTileW, ScreenHeight/CoarseTileH);
965+
glDispatchCompute(((gpu.GPU3D.RenderNumPolygons + 31) / 32), ScreenWidth/CoarseTileW, ScreenHeight/CoarseTileH);
966966
glMemoryBarrier(GL_SHADER_STORAGE_BARRIER_BIT);
967967

968968
// calculate list offsets

0 commit comments

Comments
 (0)