mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Removes Direct3D9 functionality.
This commit is contained in:
parent
5e288e79d2
commit
7e5e3b5105
86 changed files with 382 additions and 10445 deletions
|
|
@ -282,18 +282,10 @@ GFXTextureObject* ReflectionManager::getRefractTex( bool forceUpdate )
|
|||
GFXFormat targetFormat = target->getFormat();
|
||||
const Point2I &targetSize = target->getSize();
|
||||
|
||||
U32 desWidth, desHeight;
|
||||
// D3D11 needs to be the same size as the active target
|
||||
if (GFX->getAdapterType() == Direct3D11)
|
||||
{
|
||||
desWidth = targetSize.x;
|
||||
desHeight = targetSize.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
desWidth = mFloor((F32)targetSize.x * smRefractTexScale);
|
||||
desHeight = mFloor((F32)targetSize.y * smRefractTexScale);
|
||||
}
|
||||
U32 desWidth = targetSize.x;
|
||||
U32 desHeight = targetSize.y;
|
||||
|
||||
|
||||
if ( mRefractTex.isNull() ||
|
||||
mRefractTex->getWidth() != desWidth ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue