-
-
Notifications
You must be signed in to change notification settings - Fork 665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid rendering on iOS (Wasm) #631
Comments
It looks like vertices are correct, but texture data is broken. Hmm... |
#721 should be fixed in the first place? |
With Go 1.12 beta2, the go-inovation app shows the below error on iOS (not desktops).
|
Before this, we'd need to fix the OOM issue #678 |
Maybe other examples doesn't cause this issue, but examples/blocks caused. This doesn't extend the internal images, so extending logic is not the culprit. Hmm |
diff --git a/examples/blocks/blocks/titlescene.go b/examples/blocks/blocks/titlescene.go
index 7b6c47fa..15782744 100644
--- a/examples/blocks/blocks/titlescene.go
+++ b/examples/blocks/blocks/titlescene.go
@@ -32,7 +32,9 @@ func init() {
if err != nil {
panic(err)
}
- imageBackground, _ = ebiten.NewImageFromImage(img, ebiten.FilterDefault)
+ println(img.At(16, 15).(color.RGBA).R, img.At(16, 15).(color.RGBA).A)
+ println(img.At(16, 16).(color.RGBA).R, img.At(16, 16).(color.RGBA).A)
+ imageBackground, _ = ebiten.NewImageFromImage(img, ebiten.FilterNearest)
}
type TitleScene struct { Expected:
On iOS Safari:
Then, it looks like something is broken on Wasm side, not GPU side. |
golang/go#32635 Reported |
Can you try again with iOS 13? See golang/go#32635 (comment). Edit: I tried the link in the original issue, and can confirm iOS 13 fixes the problem. This is with iOS 12.4.1: This is with iOS 13: Unfortunately, I couldn't test on the same device, but the chance of this being due to hardware difference rather than software seems low. |
OK I'll try to update my device to iOS 13 first... |
Unfortunately my devices don't get iOS 13 yet. I need more time. |
Hmm, mine is iPhone 6 (not S) and iOS 13 never comes. I'd need to buy a new iPhone :-P |
Fixed by iOS 13. |
http://hajimehoshi.github.io/go-inovation/wasm/
This screenshot is by Pontus Leitzler.
GopherJS ver (http://hajimehoshi.github.io/go-inovation/) works correctly.
The text was updated successfully, but these errors were encountered: