From 6d6a4398c64cff3b06db6b9e1f8e03c4483e57c2 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 27 Oct 2014 13:25:38 +0000 Subject: [PATCH] Change max vertices to 65534 to avoid conflict with strip cut index --- panda/src/egg2pg/config_egg2pg.cxx | 2 +- panda/src/pgraph/config_pgraph.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/egg2pg/config_egg2pg.cxx b/panda/src/egg2pg/config_egg2pg.cxx index e51ef31366..f17dedbe4f 100644 --- a/panda/src/egg2pg/config_egg2pg.cxx +++ b/panda/src/egg2pg/config_egg2pg.cxx @@ -145,7 +145,7 @@ ConfigVariableEnum egg_alpha_mode "or because of a four-channel texture.")); ConfigVariableInt egg_max_vertices -("egg-max-vertices", 65535, +("egg-max-vertices", 65534, PRC_DESC("Specifies the maximum number of vertices that will be " "added to any one GeomVertexData by the egg loader.")); diff --git a/panda/src/pgraph/config_pgraph.cxx b/panda/src/pgraph/config_pgraph.cxx index 97f54ff1a3..840ce5ba4e 100644 --- a/panda/src/pgraph/config_pgraph.cxx +++ b/panda/src/pgraph/config_pgraph.cxx @@ -265,7 +265,7 @@ ConfigVariableBool depth_offset_decals "their depth offset implementation.")); ConfigVariableInt max_collect_vertices -("max-collect-vertices", 65535, +("max-collect-vertices", 65534, PRC_DESC("Specifies the maximum number of vertices that are allowed to be " "accumulated into any one GeomVertexData structure as a result " "of collecting objects together during a flatten operation. "