Skip to content

Commit 4a6bee2

Browse files
committed
Removed unnecessary call to screen.Clear in Draw
1 parent 74b76d2 commit 4a6bee2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

render.go

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import (
99

1010
// Draw the raycasted camera view to the screen.
1111
func (c *Camera) Draw(screen *ebiten.Image) {
12-
screen.Clear()
13-
1412
//--draw basic sky and floor--//
1513
texRect := image.Rect(0, 0, c.texSize, c.texSize)
1614
lightingRGBA := &color.RGBA{R: c.maxLightRGB.R, G: c.maxLightRGB.G, B: c.maxLightRGB.B, A: 255}

0 commit comments

Comments
 (0)