MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / CheckMaxVertices

Function CheckMaxVertices

src/Model.c:865–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865static void CheckMaxVertices(void) {
866 /* hack to undo plugins setting a smaller vertices buffer */
867 if (Models.MaxVertices < MODELS_MAX_VERTICES) {
868 Platform_LogConst("CheckMaxVertices found smaller buffer, resetting Models.Vb");
869 Models.MaxVertices = MODELS_MAX_VERTICES;
870 Gfx_DeleteDynamicVb(&Models.Vb);
871 }
872}
873
874void CustomModel_Register(struct CustomModel* cm) {
875 static struct ModelTex customDefaultTex;

Callers 1

CustomModel_RegisterFunction · 0.85

Calls 2

Platform_LogConstFunction · 0.85
Gfx_DeleteDynamicVbFunction · 0.70

Tested by

no test coverage detected