mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
gl_mesh.c: add missing casts so that C++ compilers won't fail
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1244 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
439b8c2e1b
commit
6e5ba6d525
1 changed files with 2 additions and 2 deletions
|
@ -472,7 +472,7 @@ void GLMesh_LoadVertexBuffers (void)
|
|||
if (!(m = cl.model_precache[j])) break;
|
||||
if (m->type != mod_alias) continue;
|
||||
|
||||
hdr = Mod_Extradata (m);
|
||||
hdr = (aliashdr_t *) Mod_Extradata (m);
|
||||
|
||||
// ericw -- RMQEngine stored these vbo*ofs values in aliashdr_t, but we must not
|
||||
// mutate Mod_Extradata since it might be reloaded from disk, so I moved them to qmodel_t
|
||||
|
@ -513,7 +513,7 @@ void GLMesh_LoadVertexBuffers (void)
|
|||
if (!(m = cl.model_precache[j])) break;
|
||||
if (m->type != mod_alias) continue;
|
||||
|
||||
hdr = Mod_Extradata (m);
|
||||
hdr = (aliashdr_t *) Mod_Extradata (m);
|
||||
desc = (aliasmesh_t *) ((byte *) hdr + hdr->meshdesc);
|
||||
|
||||
//johnfitz -- padded skins
|
||||
|
|
Loading…
Reference in a new issue