gpu: fix one-off in model buffer selection
The small compute shader will sort up to 512 faces
This commit is contained in:
@@ -1417,7 +1417,7 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
|
|||||||
*/
|
*/
|
||||||
private GpuIntBuffer bufferForTriangles(int triangles)
|
private GpuIntBuffer bufferForTriangles(int triangles)
|
||||||
{
|
{
|
||||||
if (triangles < SMALL_TRIANGLE_COUNT)
|
if (triangles <= SMALL_TRIANGLE_COUNT)
|
||||||
{
|
{
|
||||||
++smallModels;
|
++smallModels;
|
||||||
return modelBufferSmall;
|
return modelBufferSmall;
|
||||||
|
|||||||
Reference in New Issue
Block a user