mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/graphicsdriver/opengl/gl: reland: refactoring: reduce opengles build tags
Updates #292
This commit is contained in:
parent
e8810495cf
commit
114a8aa6ea
@ -1,25 +0,0 @@
|
|||||||
// Copyright 2020 The Ebiten Authors
|
|
||||||
//
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
// you may not use this file except in compliance with the License.
|
|
||||||
// You may obtain a copy of the License at
|
|
||||||
//
|
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
|
||||||
|
|
||||||
//go:build (android || ios || opengles) && !js
|
|
||||||
|
|
||||||
package opengl
|
|
||||||
|
|
||||||
import (
|
|
||||||
"github.com/hajimehoshi/ebiten/v2/internal/shaderir/glsl"
|
|
||||||
)
|
|
||||||
|
|
||||||
func (c *context) glslVersion() glsl.GLSLVersion {
|
|
||||||
return glsl.GLSLVersionES100
|
|
||||||
}
|
|
@ -12,7 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//go:build !android && !ios && !js && !opengles
|
//go:build !js
|
||||||
|
|
||||||
package opengl
|
package opengl
|
||||||
|
|
||||||
@ -21,5 +21,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (c *context) glslVersion() glsl.GLSLVersion {
|
func (c *context) glslVersion() glsl.GLSLVersion {
|
||||||
|
if c.isES() {
|
||||||
|
return glsl.GLSLVersionES100
|
||||||
|
}
|
||||||
return glsl.GLSLVersionDefault
|
return glsl.GLSLVersionDefault
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user