Fix RBSP fixed-patch loading.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5654 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
9d3bf714a5
commit
7d0014bf34
2 changed files with 5 additions and 1 deletions
|
@ -105,7 +105,7 @@
|
||||||
#undef DOOMWADS
|
#undef DOOMWADS
|
||||||
#undef MAP_PROC
|
#undef MAP_PROC
|
||||||
#undef Q2BSPS
|
#undef Q2BSPS
|
||||||
#undef RFBSPS
|
#define RFBSPS
|
||||||
#undef SPRMODELS
|
#undef SPRMODELS
|
||||||
#undef SP2MODELS
|
#undef SP2MODELS
|
||||||
#undef DSPMODELS
|
#undef DSPMODELS
|
||||||
|
|
|
@ -3019,6 +3019,10 @@ static void CModRBSP_BuildSurfMesh(model_t *mod, msurface_t *out, builddata_t *b
|
||||||
{
|
{
|
||||||
GL_CreateMeshForPatch(mod, out->mesh, LittleLong(in->patchwidth), LittleLong(in->patchheight), LittleLong(in->num_vertices), LittleLong(in->firstvertex));
|
GL_CreateMeshForPatch(mod, out->mesh, LittleLong(in->patchwidth), LittleLong(in->patchheight), LittleLong(in->num_vertices), LittleLong(in->firstvertex));
|
||||||
}
|
}
|
||||||
|
else if (LittleLong(in->facetype) == MST_PATCH_FIXED)
|
||||||
|
{
|
||||||
|
GL_CreateMeshForPatchFixed(mod, out->mesh, LittleLong(in->patchwidth), LittleLong(in->patchheight), LittleLong(in->num_vertices), LittleLong(in->firstvertex));
|
||||||
|
}
|
||||||
else if (LittleLong(in->facetype) == MST_PLANAR || LittleLong(in->facetype) == MST_TRIANGLE_SOUP)
|
else if (LittleLong(in->facetype) == MST_PLANAR || LittleLong(in->facetype) == MST_TRIANGLE_SOUP)
|
||||||
{
|
{
|
||||||
unsigned int fv = LittleLong(in->firstvertex), i;
|
unsigned int fv = LittleLong(in->firstvertex), i;
|
||||||
|
|
Loading…
Reference in a new issue