internal/graphicsdriver/opengl: update GLES version to 3.0

GLES 3.0 is required for GLSL ES 3.0

Updates #1431
This commit is contained in:
Hajime Hoshi 2023-04-19 22:43:10 +09:00
parent 7509c1d7f5
commit 95709d9182

View File

@ -23,7 +23,7 @@ import (
func (g *Graphics) SetGLFWClientAPI() {
if g.context.ctx.IsES() {
glfw.WindowHint(glfw.ClientAPI, glfw.OpenGLESAPI)
glfw.WindowHint(glfw.ContextVersionMajor, 2)
glfw.WindowHint(glfw.ContextVersionMajor, 3)
glfw.WindowHint(glfw.ContextVersionMinor, 0)
glfw.WindowHint(glfw.ContextCreationAPI, glfw.EGLContextAPI)
return