viewport scales with window now
This commit is contained in:
parent
61ed20c865
commit
22fe07e0f3
@ -414,6 +414,7 @@ adjustWindow = do
|
|||||||
far = 100 --far plane
|
far = 100 --far plane
|
||||||
ratio = fromIntegral fbWidth / fromIntegral fbHeight
|
ratio = fromIntegral fbWidth / fromIntegral fbHeight
|
||||||
frust = createFrustum fov near far ratio
|
frust = createFrustum fov near far ratio
|
||||||
|
liftIO $ glViewport 0 0 (fromIntegral fbWidth) (fromIntegral fbHeight)
|
||||||
put $ state {
|
put $ state {
|
||||||
stateFrustum = frust
|
stateFrustum = frust
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user