Skip to content

fix: improve texture loading reliability for sleep/resume scenarios#23

Closed
106- wants to merge 1 commit into
mainfrom
claude/issue-19-20250529_090025
Closed

fix: improve texture loading reliability for sleep/resume scenarios#23
106- wants to merge 1 commit into
mainfrom
claude/issue-19-20250529_090025

Conversation

@106-

@106- 106- commented May 29, 2025

Copy link
Copy Markdown
Owner

Fixes #19

This PR addresses the issue where textures sometimes fail to load after sleep/resume or home screen transitions.

Changes

  • Add OpenGL context lost detection in GLWallpaperServiceES32.swap()
  • Force surface recreation when context loss is detected
  • Improve texture validation using TextureUtils.isValidTexture()
  • Add proper texture cleanup and reload in onSurfaceCreated
  • Add texture validation queuing on resume events

Testing

  • ./gradlew test - passed
  • ./gradlew assembleDebug - passed

Generated with Claude Code

- Add OpenGL context lost detection in GLWallpaperServiceES32.swap()
- Force surface recreation when context loss is detected
- Improve texture validation using TextureUtils.isValidTexture()
- Add proper texture cleanup and reload in onSurfaceCreated
- Add texture validation queuing on resume events

This should fix the issue where textures sometimes fail to load
after sleep/resume or home screen transitions.

Co-authored-by: 106- <106-@users.noreply.github.com>
@106- 106- self-assigned this May 29, 2025
@106-

106- commented Jun 1, 2025

Copy link
Copy Markdown
Owner Author

たしかに今のところ、テクスチャがかけるのは無くなってる

@106- 106- closed this Jun 3, 2025
@106- 106- deleted the claude/issue-19-20250529_090025 branch June 3, 2025 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

時々テクスチャが読み込まれないことがある問題の調査

1 participant