diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-03-22 13:43:06 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-03-22 13:51:50 +0400 |
commit | 8afc649d1f53606a4bd1c46dd6f8f9ab165b8303 (patch) | |
tree | 6ca81f90e8f84ccd699e5a0176124dbe46bd18b3 /inc/refresh/models.h | |
parent | 376bef83ff1fef84baa45631038a9bd9df46e2e8 (diff) |
Clean up and fix MD2 model loading code.
Bump maximum number of vertices MD2 model can have to 4096 from original
limit of 2048. Some semi-broken models exist that have triangles with
indices set to -1. Simply skip such bad triangles and make GL renderer
load the model anyway. Correctly cap total number of vertices after
remapping. Ignore invalid light normal indices instead of exiting with
error.
Diffstat (limited to 'inc/refresh/models.h')
-rw-r--r-- | inc/refresh/models.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/refresh/models.h b/inc/refresh/models.h index 21b7a19..ef253a0 100644 --- a/inc/refresh/models.h +++ b/inc/refresh/models.h @@ -29,8 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #define MOD_Malloc(size) Hunk_Alloc(&model->hunk, size) -// FIXME: MD3 has 256 limit #define MAX_ALIAS_SKINS 32 +#define MAX_ALIAS_VERTS 4096 typedef struct mspriteframe_s { int width, height; |