From 489e88feb4b832ab0b5c0a4a8318dbc283ac03c3 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 17 Sep 2014 03:23:03 +0000 Subject: [PATCH] small fix. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4754 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/com_mesh.c | 2 +- engine/d3d/vid_d3d.c | 1 + engine/d3d/vid_d3d11.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/common/com_mesh.c b/engine/common/com_mesh.c index 38ad02dcb..f5ee19150 100644 --- a/engine/common/com_mesh.c +++ b/engine/common/com_mesh.c @@ -1463,7 +1463,6 @@ static void Alias_BuildSkeletalVPositionsPose(float *xyzout, skeltype_t bonetype #ifndef SERVERONLY #ifdef GLQUAKE #include "glquake.h" -#endif static void Alias_DrawSkeletalBones(galiasbone_t *bones, float *bonepose, int bonecount, int basebone) { #ifndef GLQUAKE @@ -1593,6 +1592,7 @@ static void Alias_DrawSkeletalBones(galiasbone_t *bones, float *bonepose, int bo } #endif } +#endif #endif //!SERVERONLY #endif //SKELETALMODELS diff --git a/engine/d3d/vid_d3d.c b/engine/d3d/vid_d3d.c index f6d0c7090..69cae8584 100644 --- a/engine/d3d/vid_d3d.c +++ b/engine/d3d/vid_d3d.c @@ -1108,6 +1108,7 @@ static void (D3D9_R_Init) (void) } static void (D3D9_R_DeInit) (void) { + R_GAliasFlushSkinCache(true); Surf_DeInit(); Shader_Shutdown(); D3D9_Image_Shutdown(); diff --git a/engine/d3d/vid_d3d11.c b/engine/d3d/vid_d3d11.c index 869e9bff5..4feceb51e 100644 --- a/engine/d3d/vid_d3d11.c +++ b/engine/d3d/vid_d3d11.c @@ -1296,7 +1296,7 @@ static void (D3D11_R_Init) (void) } static void (D3D11_R_DeInit) (void) { - GL_GAliasFlushSkinCache(); + R_GAliasFlushSkinCache(true); Surf_DeInit(); Shader_Shutdown(); D3D11_Image_Shutdown();