viewport scales with window now
This commit is contained in:
		| @@ -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 | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user