Skip to content

MultiTextureStyle rework : fixed error when maxTextures > 2, up to 16…#1144

Open
MatseFR wants to merge 4 commits into
Gamua:masterfrom
MatseFR:master
Open

MultiTextureStyle rework : fixed error when maxTextures > 2, up to 16…#1144
MatseFR wants to merge 4 commits into
Gamua:masterfrom
MatseFR:master

Conversation

@MatseFR
Copy link
Copy Markdown
Contributor

@MatseFR MatseFR commented Feb 25, 2026

… textures + optimizations

There is currently an issue with MultiTextureStyle : when MultiTextureStyle.maxTextures is set to 3 or more the following error is thrown as soon as the program is activated :

[Fault] exception, information=Error: Error #3647: AGAL validation failed: Temporary register read without being written to for source operand 1 at token 13 of fragment program.

This version has been tested with 2000 movie clips with 1 to 16 different textures : I'm not sure I got the programVariantName right though ?

@Fancy2209
Copy link
Copy Markdown
Contributor

If it's up to 16 textures shouldn't
_MAX_NUM_TEXTURES be 16?

@MatseFR
Copy link
Copy Markdown
Contributor Author

MatseFR commented Feb 25, 2026

@Fancy2209 it is, if the profile is not baseline, otherwise it's limited to 5 because of AGAL 1 (no ifs)

@MatseFR
Copy link
Copy Markdown
Contributor Author

MatseFR commented Mar 12, 2026

all issues have been fixed, except the one that current MultiTextureStyle has too ( #1145 )

cc @PrimaryFeather

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.

2 participants