gg: fix clear function

pull/2504/head
Sergio Abreu García 2019-10-22 22:06:56 +02:00 committed by Alexander Medvednikov
parent 8bfb5425e3
commit 14c273f273
1 changed files with 3 additions and 4 deletions

View File

@ -136,8 +136,8 @@ pub fn (gg &GG) render_loop() bool {
*/ */
pub fn clear(color gx.Color) { pub fn clear(color gx.Color) {
gl.clear_color(color.r, color.g, color.b, 255)
gl.clear() gl.clear()
gl.clear_color(255, 255, 255, 255)
} }
pub fn (gg &GG) render() { pub fn (gg &GG) render() {
@ -437,4 +437,3 @@ pub fn (c &GG) draw_empty_rect(x, y, w, h int, color gx.Color) {
c.draw_line_c(x, y + h, x + w, y + h, color) c.draw_line_c(x, y + h, x + w, y + h, color)
c.draw_line_c(x + w, y, x + w, y + h, color) c.draw_line_c(x + w, y, x + w, y + h, color)
} }