Removes Direct3D9 functionality.

This commit is contained in:
Areloch 2017-05-28 16:51:31 -05:00
parent 5ac6f6beb3
commit edd1e0a270
86 changed files with 382 additions and 10445 deletions

View file

@ -42,14 +42,6 @@ void ScreenSpace::RenderTargetParameters(const Point3I &targetSize, const RectI
Point2F targetScale( (F32)targetViewport.extent.x / (F32)targetSize.x,
(F32)targetViewport.extent.y / (F32)targetSize.y );
const bool hasTexelPixelOffset = GFX->getAdapterType() == Direct3D9;
// Get the target half pixel size.
const Point2F halfPixel( hasTexelPixelOffset ? (0.5f / targetSize.x) : 0.0f,
hasTexelPixelOffset ? (0.5f / targetSize.y) : 0.0f );
rtParams.set( targetOffset.x + halfPixel.x,
targetOffset.y + halfPixel.y,
targetScale.x,
targetScale.y );
rtParams.set( targetOffset.x, targetOffset.y, targetScale.x, targetScale.y );
}