re-enabled GUI
This commit is contained in:
		@@ -458,9 +458,9 @@ render = do
 | 
				
			|||||||
        ---- RENDER MAP IN TEXTURE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 | 
					        ---- RENDER MAP IN TEXTURE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 | 
				
			||||||
        -- COLORMAP
 | 
					        -- COLORMAP
 | 
				
			||||||
    liftIO $ do
 | 
					    liftIO $ do
 | 
				
			||||||
        bindFramebuffer Framebuffer $= defaultFramebufferObject
 | 
					        {-bindFramebuffer Framebuffer $= defaultFramebufferObject
 | 
				
			||||||
        drawBuffer $= BackBuffers
 | 
					        drawBuffer $= BackBuffers-}
 | 
				
			||||||
        {-tex <- liftIO $ readTVarIO (state ^. mapTexture)
 | 
					        tex <- liftIO $ readTVarIO (state ^. mapTexture)
 | 
				
			||||||
        textureBinding Texture2D $= Just tex
 | 
					        textureBinding Texture2D $= Just tex
 | 
				
			||||||
        framebufferTexture2D
 | 
					        framebufferTexture2D
 | 
				
			||||||
                Framebuffer
 | 
					                Framebuffer
 | 
				
			||||||
@@ -470,7 +470,7 @@ render = do
 | 
				
			|||||||
                0
 | 
					                0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        -- Render to FrameBufferObject
 | 
					        -- Render to FrameBufferObject
 | 
				
			||||||
        drawBuffers $= [FBOColorAttachment 0]-}
 | 
					        drawBuffers $= [FBOColorAttachment 0]
 | 
				
			||||||
        checkError "setup Render-Target"
 | 
					        checkError "setup Render-Target"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        clear [ColorBuffer, DepthBuffer]
 | 
					        clear [ColorBuffer, DepthBuffer]
 | 
				
			||||||
@@ -502,7 +502,7 @@ render = do
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        ---- COMPOSE RENDERING --------------------------------------------
 | 
					        ---- COMPOSE RENDERING --------------------------------------------
 | 
				
			||||||
        -- Render to BackBuffer (=Screen)
 | 
					        -- Render to BackBuffer (=Screen)
 | 
				
			||||||
        {-bindFramebuffer Framebuffer $= defaultFramebufferObject
 | 
					        bindFramebuffer Framebuffer $= defaultFramebufferObject
 | 
				
			||||||
        drawBuffer $= BackBuffers
 | 
					        drawBuffer $= BackBuffers
 | 
				
			||||||
        -- Drawing HUD
 | 
					        -- Drawing HUD
 | 
				
			||||||
        clear [ColorBuffer, DepthBuffer]
 | 
					        clear [ColorBuffer, DepthBuffer]
 | 
				
			||||||
@@ -531,6 +531,6 @@ render = do
 | 
				
			|||||||
        drawElements TriangleStrip 4 UnsignedInt offset0
 | 
					        drawElements TriangleStrip 4 UnsignedInt offset0
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        bindBuffer ArrayBuffer $= Nothing
 | 
					        bindBuffer ArrayBuffer $= Nothing
 | 
				
			||||||
        bindBuffer ElementArrayBuffer $= Nothing-}
 | 
					        bindBuffer ElementArrayBuffer $= Nothing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user