Skip to content

Commit 90edf30

Browse files
committed
Add missing GL mode (aliases) for mobile and web
Mostly just hides errors
1 parent b437b5a commit 90edf30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/painter/gl/gl_gomobile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var (
5656
compiled []ProgramState // avoid multiple compilations with the re-used mobile GUI context
5757
noBuffer = Buffer{}
5858
noShader = Shader{}
59-
textureFilterToGL = [...]int32{gl.Linear, gl.Nearest}
59+
textureFilterToGL = [...]int32{gl.Linear, gl.Nearest, gl.Linear}
6060
)
6161

6262
func (p *painter) glctx() gl.Context {

internal/painter/gl/gl_wasm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type (
5555
var (
5656
noBuffer = Buffer(gl.NoBuffer)
5757
noShader = Shader(gl.NoShader)
58-
textureFilterToGL = [...]int32{gl.LINEAR, gl.NEAREST}
58+
textureFilterToGL = [...]int32{gl.LINEAR, gl.NEAREST, gl.LINEAR}
5959
)
6060

6161
func (p *painter) Init() {

0 commit comments

Comments
 (0)