From d738639c48675eec9f4ac6f82c5de081e2212936 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 20 Dec 2018 02:36:21 +0900 Subject: [PATCH] graphicsdriver/opengl: Fix panic messages --- internal/graphicsdriver/opengl/driver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/graphicsdriver/opengl/driver.go b/internal/graphicsdriver/opengl/driver.go index ad15db24d..dbde4f836 100644 --- a/internal/graphicsdriver/opengl/driver.go +++ b/internal/graphicsdriver/opengl/driver.go @@ -35,10 +35,10 @@ type Driver struct { func (d *Driver) checkSize(width, height int) { if width < 1 { - panic(fmt.Sprintf("opengl: width (%d) must be equal or more than 1.", width)) + panic(fmt.Sprintf("opengl: width (%d) must be equal or more than 1", width)) } if height < 1 { - panic(fmt.Sprintf("opengl: height (%d) must be equal or more than 1.", height)) + panic(fmt.Sprintf("opengl: height (%d) must be equal or more than 1", height)) } m := d.context.getMaxTextureSize() if width > m {