mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
graphicsdriver/opengl: Refactoring
This commit is contained in:
parent
0bf6eee605
commit
f77c514598
@ -85,7 +85,7 @@ const (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
isWebGL2Available = !forceWebGL1 && (js.Global().Get("WebGL2RenderingContext").Truthy() || js.Global().Get("go2cpp").Truthy())
|
isWebGL2Available = !forceWebGL1 && (js.Global().Get("WebGL2RenderingContext").Truthy() || js.Global().Get("go2cpp").Truthy())
|
||||||
needsRestoring_ = !web.IsMobileBrowser() && !js.Global().Get("go2cpp").Truthy()
|
needsRestoring = !web.IsMobileBrowser() && !js.Global().Get("go2cpp").Truthy()
|
||||||
)
|
)
|
||||||
|
|
||||||
type contextImpl struct {
|
type contextImpl struct {
|
||||||
@ -528,7 +528,7 @@ func (c *context) flush() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *context) needsRestoring() bool {
|
func (c *context) needsRestoring() bool {
|
||||||
return needsRestoring_
|
return needsRestoring
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *context) canUsePBO() bool {
|
func (c *context) canUsePBO() bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user