mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
graphicsdriver/opengl: Fix panic messages
This commit is contained in:
parent
294bf855af
commit
d738639c48
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user