ebiten/internal
Hajime Hoshi 151dfffad6 internal/restorable: simplify canDetectContextLostExplicitly
This constant was set with some wrong assumptions:

 1. On Android, recovering was needed.
 2. On iOS, OpenGL ES was used when
    a. The architecture was 386 or amd64 == an emulator is used
    b. The build tag ebitengl was not specified
    c. gomobile-build was used
 3. On browsers, recovering was needed.

1., 2b, and 2c are correct.

2a. is not correct: Now emulators are available on all the
architectures with both Metal and OpenGL.

3. is not correct: Ebiten no longer recovers the contest lost.

Now, Ebiten can detect a context lost explicitly when

 1. On Android
 2. On iOS and on gomobile-build
    (When gomobile-build is used, OpenGL should always be used)

Based on this fact, this change changes the constant to a variable,
and fixes the logic to set the variable.
2022-03-23 03:01:59 +09:00
..
affine Remove dot imports from tests - Remove dot imports (#1837) 2021-10-02 19:58:48 +09:00
atlas internal/graphicscommand: compile shaders lazily 2022-03-21 21:09:02 +09:00
buffered internal/graphicscommand: compile shaders lazily 2022-03-21 21:09:02 +09:00
cbackend internal/cbackend: bug fix: compile error again 2022-02-06 19:07:17 +09:00
clock internal/clock: Rename UncappedTPS -> SyncWithFPS 2021-07-22 22:46:24 +09:00
debug graphicscommand: Dump internal image info on the debug mode 2021-08-05 01:16:42 +09:00
devicescale internal/uidriver/glfw: Clear the device scale cache when monitors are changed 2021-09-15 13:04:38 +09:00
gamepad internal/gamepad: fix SetWindowLongPtrW crash on 32-bit Windows (#1999) 2022-02-23 23:18:20 +09:00
gamepaddb internal/gamepaddb: allow the standard layout mapping for any platforms 2022-02-06 03:38:02 +09:00
glfw internal/glfw: make the file operation atomic 2022-03-18 20:32:25 +09:00
graphics internal/graphics: rename constants 2022-03-12 04:01:48 +09:00
graphicscommand internal/graphicsdriver: let some functions return an error 2022-03-21 22:23:12 +09:00
graphicsdriver internal/ui: refactoring: simplify the selection of graphics libraries 2022-03-23 02:21:53 +09:00
hooks internal/hooks: Enable to return error at suspend/resume audio 2021-05-04 23:09:01 +09:00
jsutil internal/jsutil: Optimization: Avoid using empty interface{} conversions 2021-10-30 18:53:21 +09:00
mipmap internal/graphicscommand: compile shaders lazily 2022-03-21 21:09:02 +09:00
packing Remove dot imports from tests - Remove dot imports (#1837) 2021-10-02 19:58:48 +09:00
png internal/png: Regenerate 2021-08-28 03:14:54 +09:00
processtest internal/processtest: remove TestShaderNoMain and add shadernomain.go 2022-03-21 21:52:38 +09:00
restorable internal/restorable: simplify canDetectContextLostExplicitly 2022-03-23 03:01:59 +09:00
shader internal/shader: move syntax tests to internal/shader 2022-03-21 19:31:06 +09:00
shaderir internal/shaderir: replace Mul with ComponentWiseMul and MatrixMul 2022-03-13 19:17:46 +09:00
testing internal/graphicscommand: compile shaders lazily 2022-03-21 21:09:02 +09:00
thread internal/thread: bug fix: do not close 'terminate' channel 2022-01-05 17:21:53 +09:00
ui internal/ui: bug fix: OpenGL must be used when gomobile-build is used 2022-03-23 02:58:56 +09:00
vibrate internal/ui: separate 'vibrate' part to internal/vibrate 2022-02-08 14:48:55 +09:00