mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
opengl: Implement GlslHighpSupported for iOS
This commit is contained in:
parent
dfe4db67be
commit
0b8fe25350
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user