mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
internal/graphicsdriver/opengl: enable to compiile for browsers with the 'opengles' tag
The 'opengles' tag is just ignored for browsers.
This commit is contained in:
parent
37c5f53890
commit
257f05883c
@ -12,8 +12,9 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build android || ios || opengles
|
||||
//go:build (android || ios || opengles) && !js
|
||||
// +build android ios opengles
|
||||
// +build !js
|
||||
|
||||
package opengl
|
||||
|
||||
|
@ -12,8 +12,9 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build android || ios || opengles
|
||||
//go:build (android || ios || opengles) && !js
|
||||
// +build android ios opengles
|
||||
// +build !js
|
||||
|
||||
package opengl
|
||||
|
||||
|
@ -18,6 +18,10 @@ import (
|
||||
"syscall/js"
|
||||
)
|
||||
|
||||
func (g *Graphics) init() {
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
func (g *Graphics) SetCanvas(canvas js.Value) {
|
||||
g.context.canvas = canvas
|
||||
}
|
||||
|
@ -12,8 +12,9 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//go:build android || ios || opengles
|
||||
//go:build (android || ios || opengles) && !js
|
||||
// +build android ios opengles
|
||||
// +build !js
|
||||
|
||||
package opengl
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user