diff --git a/source/Irrlicht/COpenGLDriver.cpp b/source/Irrlicht/COpenGLDriver.cpp index 4afe37c6..169f1c96 100644 --- a/source/Irrlicht/COpenGLDriver.cpp +++ b/source/Irrlicht/COpenGLDriver.cpp @@ -966,7 +966,7 @@ void COpenGLDriver::draw2DRectangle(SColor color, const core::rect& positio const core::dimension2d& renderTargetSize = getCurrentRenderTargetSize(); const s32 xPlus = renderTargetSize.Width/2; - const f32 xFact = 2.0f / renderTargetSize.Width/2; + const f32 xFact = 2.0f / renderTargetSize.Width; const s32 yPlus = renderTargetSize.Height-(renderTargetSize.Height/2); const f32 yFact = 2.0f / renderTargetSize.Height;