gpu: fix one-off in model buffer selection

The small compute shader will sort up to 512 faces
This commit is contained in:
Adam
2020-04-17 10:35:52 -04:00
parent c1fdec9d2e
commit ed53771295

View File

@@ -1417,7 +1417,7 @@ public class GpuPlugin extends Plugin implements DrawCallbacks
*/
private GpuIntBuffer bufferForTriangles(int triangles)
{
if (triangles < SMALL_TRIANGLE_COUNT)
if (triangles <= SMALL_TRIANGLE_COUNT)
{
++smallModels;
return modelBufferSmall;