Skip to content

Commit

Permalink
xrEngine/CRenderDevice: Removed D3DXMatrixInverse dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR authored and Kaffeine committed Nov 10, 2015
1 parent c738d70 commit cc3644d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/xrEngine/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#define MMNOMIXER
#define MMNOJOY
#include <mmsystem.h>
// d3dx9.h
#include <d3dx9.h>
#pragma warning(default:4995)

#include "x_ray.h"
Expand All @@ -29,8 +27,6 @@
#include "IGame_Persistent.h"
#include "xrScriptEngine/ScriptExporter.hpp"

#pragma comment( lib, "d3dx9.lib" )

ENGINE_API CRenderDevice Device;
ENGINE_API CLoadScreenRenderer load_screen_renderer;

Expand Down Expand Up @@ -232,7 +228,7 @@ void CRenderDevice::on_idle()
// Matrices
mFullTransform.mul(mProject, mView);
GlobalEnv.Render->SetCacheXform(mView, mProject);
D3DXMatrixInverse((D3DXMATRIX*)&mInvFullTransform, 0, (D3DXMATRIX*)&mFullTransform);
mInvFullTransform.invert(mFullTransform);
vCameraPosition_saved = vCameraPosition;
mFullTransform_saved = mFullTransform;
mView_saved = mView;
Expand Down

0 comments on commit cc3644d

Please sign in to comment.