mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-11-10 12:10:23 +01:00
Only clear renderer if necessary.
This commit is contained in:
parent
3a9fd0ca1e
commit
58d930e1d2
|
@ -147,6 +147,11 @@ func (r *Renderer) SetPos(xOfs, zOfs int16) {
|
|||
}
|
||||
|
||||
func (r *Renderer) Reset() {
|
||||
|
||||
if r.IsEmpty() {
|
||||
return
|
||||
}
|
||||
|
||||
yb := r.yBuffer
|
||||
yb = yb[:len(yb)]
|
||||
for i := range yb {
|
||||
|
|
Loading…
Reference in New Issue
Block a user