mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
models: in mesh could be more than 16k glcmds
This commit is contained in:
parent
014dd11b2e
commit
e2b2efaa59
2 changed files with 5 additions and 5 deletions
|
@ -1039,7 +1039,7 @@ Mod_LoadModel_Flex(const char *mod_name, const void *buffer, int modfilelen,
|
|||
{
|
||||
int num_mesh_nodes;
|
||||
|
||||
num_mesh_nodes = (pheader->ofs_skins - sizeof(*pheader)) / sizeof(short) / 2;
|
||||
num_mesh_nodes = (pheader->ofs_skins - sizeof(*pheader)) / sizeof(dmdxmesh_t);
|
||||
|
||||
if (version != 3)
|
||||
{
|
||||
|
|
|
@ -253,16 +253,16 @@ typedef struct
|
|||
|
||||
typedef struct
|
||||
{
|
||||
float scale[3]; /* multiply short verts by this */
|
||||
float translate[3]; /* then add this */
|
||||
vec3_t scale; /* multiply short verts by this */
|
||||
vec3_t translate; /* then add this */
|
||||
char name[16]; /* frame name from grabbing */
|
||||
dxtrivertx_t verts[1]; /* variable sized */
|
||||
} daliasxframe_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
short start;
|
||||
short num;
|
||||
unsigned int start;
|
||||
unsigned int num;
|
||||
} dmdxmesh_t;
|
||||
|
||||
typedef struct
|
||||
|
|
Loading…
Reference in a new issue