diff --git a/internal/graphicsdriver/opengl/gl_js.go b/internal/graphicsdriver/opengl/gl_js.go index e4f562fc7..3c73208b2 100644 --- a/internal/graphicsdriver/opengl/gl_js.go +++ b/internal/graphicsdriver/opengl/gl_js.go @@ -60,7 +60,6 @@ type gl struct { getProgramParameter js.Value getShaderInfoLog js.Value getShaderParameter js.Value - getShaderPrecisionFormat js.Value getUniformLocation js.Value isContextLost js.Value isFramebuffer js.Value @@ -137,7 +136,6 @@ func (c *context) newGL(v js.Value) *gl { getProgramParameter: v.Get("getProgramParameter").Call("bind", v), getShaderInfoLog: v.Get("getShaderInfoLog").Call("bind", v), getShaderParameter: v.Get("getShaderParameter").Call("bind", v), - getShaderPrecisionFormat: v.Get("getShaderPrecisionFormat").Call("bind", v), getUniformLocation: v.Get("getUniformLocation").Call("bind", v), isContextLost: v.Get("isContextLost").Call("bind", v), isFramebuffer: v.Get("isFramebuffer").Call("bind", v), diff --git a/internal/graphicsdriver/opengl/gles/default.go b/internal/graphicsdriver/opengl/gles/default.go index 04911ba4a..dca687df6 100644 --- a/internal/graphicsdriver/opengl/gles/default.go +++ b/internal/graphicsdriver/opengl/gles/default.go @@ -245,13 +245,6 @@ func (DefaultContext) GetShaderiv(dst []int32, shader uint32, pname uint32) { C.glGetShaderiv(C.GLuint(shader), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&dst[0]))) } -func (DefaultContext) GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32) (rangeLow, rangeHigh, precision int) { - var r [2]int32 - var p int32 - C.glGetShaderPrecisionFormat(C.GLenum(shadertype), C.GLenum(precisiontype), (*C.GLint)(unsafe.Pointer(&r[0])), (*C.GLint)(unsafe.Pointer(&p))) - return int(r[0]), int(r[1]), int(p) -} - func (DefaultContext) GetUniformLocation(program uint32, name string) int32 { s := C.CString(name) defer C.free(unsafe.Pointer(s)) diff --git a/internal/graphicsdriver/opengl/gles/gomobile.go b/internal/graphicsdriver/opengl/gles/gomobile.go index 11bed6b23..3bbd364bc 100644 --- a/internal/graphicsdriver/opengl/gles/gomobile.go +++ b/internal/graphicsdriver/opengl/gles/gomobile.go @@ -230,10 +230,6 @@ func (g *GomobileContext) GetShaderiv(dst []int32, shader uint32, pname uint32) dst[0] = int32(g.ctx.GetShaderi(gl.Shader{Value: shader}, gl.Enum(pname))) } -func (g *GomobileContext) GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32) (rangeLow, rangeHigh, precision int) { - return g.ctx.GetShaderPrecisionFormat(gl.Enum(shadertype), gl.Enum(precisiontype)) -} - func (g *GomobileContext) GetUniformLocation(program uint32, name string) int32 { return g.ctx.GetUniformLocation(gmProgram(program), name).Value } diff --git a/internal/graphicsdriver/opengl/gles/interface.go b/internal/graphicsdriver/opengl/gles/interface.go index 34c0587c6..81f938ab9 100644 --- a/internal/graphicsdriver/opengl/gles/interface.go +++ b/internal/graphicsdriver/opengl/gles/interface.go @@ -57,7 +57,6 @@ type Context interface { GetProgramiv(dst []int32, program uint32, pname uint32) GetShaderInfoLog(shader uint32) string GetShaderiv(dst []int32, shader uint32, pname uint32) - GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32) (rangeLow, rangeHigh, precision int) GetUniformLocation(program uint32, name string) int32 IsFramebuffer(framebuffer uint32) bool IsProgram(program uint32) bool