viewport scales with window now

This commit is contained in:
Nicole Dresselhaus 2014-01-05 21:26:47 +01:00
parent 61ed20c865
commit 22fe07e0f3

View File

@ -414,6 +414,7 @@ adjustWindow = do
far = 100 --far plane
ratio = fromIntegral fbWidth / fromIntegral fbHeight
frust = createFrustum fov near far ratio
liftIO $ glViewport 0 0 (fromIntegral fbWidth) (fromIntegral fbHeight)
put $ state {
stateFrustum = frust
}