graphicsdriver/opengl: Fix panic messages

This commit is contained in:
Hajime Hoshi 2018-12-20 02:36:21 +09:00
parent 294bf855af
commit d738639c48

View File

@ -35,10 +35,10 @@ type Driver struct {
func (d *Driver) checkSize(width, height int) { func (d *Driver) checkSize(width, height int) {
if width < 1 { 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 { 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() m := d.context.getMaxTextureSize()
if width > m { if width > m {