Fix bloom resize bug, bloom itself could use improvement
This commit is contained in:
+2
-2
@@ -23,7 +23,7 @@ import Dodge.SoundLogic
|
||||
import Dodge.Inventory
|
||||
import Dodge.Config.Data
|
||||
--import Geometry
|
||||
import Framebuffer.Update
|
||||
import Preload.Update
|
||||
import qualified IntMapHelp as IM
|
||||
|
||||
import Control.Lens
|
||||
@@ -65,7 +65,7 @@ handleResizeEvent :: WindowSizeChangedEventData -> World -> Maybe World
|
||||
handleResizeEvent sev w = Just
|
||||
. set (config . windowX) (fromIntegral x)
|
||||
. set (config . windowY) (fromIntegral y)
|
||||
$ over sideEffects ( sizeFBOs (x `div` divRes) (y `div` divRes) x y : )
|
||||
$ over sideEffects (pdataResizeUpdate (x `div` divRes) (y `div` divRes) x y : )
|
||||
w
|
||||
where
|
||||
x = fromIntegral x'
|
||||
|
||||
Reference in New Issue
Block a user