Restore flags texture to fix interlaced stereo mode #12560
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix interlaced stereo mode (#12552) by reenabling flags texture in the shaders.
To do
This PR is Ready for Review.
How to test
The reason is that the mask texture ID uniform is not set, and a wrong texture is used as the mask for merging.
Here is an example of how broken 3d mode looks:
![image](https://user-images.githubusercontent.com/4933697/179709516-b8a41add-5700-430a-b547-36b3ca8b8fef.png)
Example of correct rendering:
![image](https://user-images.githubusercontent.com/4933697/179711440-1ab630af-4c73-49a8-9896-0ea5d0a9ff59.png)