We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd4f978 commit e0c24cdCopy full SHA for e0c24cd
1 file changed
jme3-core/src/main/java/com/jme3/renderer/RenderManager.java
@@ -784,7 +784,8 @@ public int getSinglePassLightBatchSize() {
784
* @param singlePassLightBatchSize the number of lights.
785
*/
786
public void setSinglePassLightBatchSize(int singlePassLightBatchSize) {
787
- this.singlePassLightBatchSize = singlePassLightBatchSize;
+ // Ensure the batch size is no less than 1
788
+ this.singlePassLightBatchSize = singlePassLightBatchSize < 1 ? 1 : singlePassLightBatchSize;
789
}
790
791
0 commit comments