mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-03 22:44:28 +01:00
.travis.yml: Remove libglfw3
This commit is contained in:
commit
01dd1472bb
@ -9,7 +9,6 @@ addons:
|
|||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- libglew-dev # required by node-gl.
|
- libglew-dev # required by node-gl.
|
||||||
- libglfw3-dev
|
|
||||||
- libopenal-dev
|
- libopenal-dev
|
||||||
- libalut-dev
|
- libalut-dev
|
||||||
- libxxf86vm-dev
|
- libxxf86vm-dev
|
||||||
|
@ -112,6 +112,13 @@ func (c *Context) init() {
|
|||||||
gl.BlendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA)
|
gl.BlendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *Context) Check() {
|
||||||
|
gl := c.gl
|
||||||
|
if e := gl.GetError(); e != gl.NO_ERROR {
|
||||||
|
panic(fmt.Sprintf("check failed: %d", e))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (c *Context) NewTexture(width, height int, pixels []uint8, filter Filter) (Texture, error) {
|
func (c *Context) NewTexture(width, height int, pixels []uint8, filter Filter) (Texture, error) {
|
||||||
gl := c.gl
|
gl := c.gl
|
||||||
t := gl.CreateTexture()
|
t := gl.CreateTexture()
|
||||||
|
Loading…
Reference in New Issue
Block a user