Commit b3cff83
[FIX] Refresh texture state when toggling mipmaps (playcanvas#8455)
* [FIX] Refresh texture state when mipmaps toggles
Update Texture#mipmaps to recalculate mip levels and mark min filter parameters dirty when toggled, so runtime mipmap changes apply immediately without requiring unrelated texture edits.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Update src/platform/graphics/texture.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* [FIX] Handle mipmaps toggle edge cases
Base mip upload scheduling on effective mipmap state after _updateNumLevel, and recreate array texture storage when mip level count changes to keep immutable GPU allocation in sync.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Add s to _updateNumLevel
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 711eb0f commit b3cff83
1 file changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
676 | 679 | | |
677 | | - | |
| 680 | + | |
678 | 681 | | |
679 | | - | |
680 | | - | |
681 | | - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
682 | 695 | | |
683 | 696 | | |
684 | 697 | | |
| |||
0 commit comments