Made mouse cursor not flicker

This commit is contained in:
andreja6
2018-06-02 15:24:32 -07:00
parent 39f68e1acc
commit 0cf7813bea
5 changed files with 16 additions and 0 deletions

View File

@@ -999,6 +999,11 @@ void Demo::onGraphics(RenderDevice* rd) {
}
}
if(Globals::useMousePoint)
{
mousepos = Globals::mousepoint;
ScreenToClient(hWndMain, &mousepos);
}
LightingParameters lighting(G3D::toSeconds(11, 00, 00, AM));
renderDevice->setProjectionAndCameraMatrix(*cameraController.getCamera());