opengl: Implement GlslHighpSupported for iOS

This commit is contained in:
Hajime Hoshi 2016-06-17 04:13:46 +09:00
parent dfe4db67be
commit 0b8fe25350
2 changed files with 5 additions and 2 deletions

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// TODO: Can we unify this into driver_openal.go?
// +build ios darwin,arm darwin,arm64
package driver

View File

@ -256,8 +256,9 @@ func (c *Context) DeleteShader(s Shader) {
}
func (c *Context) GlslHighpSupported() bool {
// TODO: Fix this
return false
gl := c.gl
_, _, precision := gl.GetShaderPrecisionFormat(mgl.FRAGMENT_SHADER, mgl.HIGH_FLOAT)
return precision != 0
}
func (c *Context) NewProgram(shaders []Shader) (Program, error) {