Skip to content
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

Fix RT Camera OnRemove detection #3027

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

wrefgtzweve
Copy link
Member

@wrefgtzweve wrefgtzweve commented Apr 2, 2024

Currently ObservedCamerasIndex isn't fully cleared which can cause RT material leakage.

After talking with @stepa2 he localized the issue to be in OnRemove which this PR fixes.

This also fixes the console command wire_rt_camera_recreate erroring.

The argument passed into OnRemove should be available on gmod main branch too but it's not entirely clear on the wiki, i've aksed the gmod devs to be sure.

@thegrb93
Copy link
Contributor

thegrb93 commented Apr 2, 2024

The argument passed into OnRemove should be available on gmod main branch too but it's not entirely clear on the wiki, i've aksed the gmod devs to be sure.

I guess let us know when sure

@wrefgtzweve
Copy link
Member Author

Seems like its in the base game, rubat just removed the warning from the wiki after i asked about it https://wiki.facepunch.com/gmod/ENTITY:OnRemove~diff:561626

@Denneisk Denneisk merged commit 3051802 into wiremod:master Apr 2, 2024
1 check failed
@wrefgtzweve wrefgtzweve deleted the rt-cam-improvement branch April 2, 2024 23:05
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.

3 participants