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

Dyanmic Cam Map stuff #369

Merged
merged 1 commit into from
Dec 20, 2013
Merged

Dyanmic Cam Map stuff #369

merged 1 commit into from
Dec 20, 2013

Conversation

Hoikas
Copy link
Member

@Hoikas Hoikas commented Dec 17, 2013

This fixes a crash bug in plDynamicCamMap::IPrepTextureLayers(). Cyan was sending the wrong kind of ref message to the layer, so we kept resending the texture over and over until the heap was corrupted.

So this is interesting. If you disable Planar Reflections and visit an age with a DCM, you will crash after a few minutes. This is because plDynamicCamMap is sending the wrong plRefMsg to the plLayer. This does nothing (aside from waste time), so we keep sending the ref again and again and again and again until we get some weird heap corruption and KABLOOOOOOOOOOOEY!
@Hoikas
Copy link
Member Author

Hoikas commented Dec 17, 2013

Updated to remove MsgReceive changes that would probably cause key leaks.

@zrax
Copy link
Member

zrax commented Dec 18, 2013

Looks reasonable

Hoikas added a commit that referenced this pull request Dec 20, 2013
Dyanmic Cam Map stuff
@Hoikas Hoikas merged commit 358ae8d into H-uru:master Dec 20, 2013
@Hoikas Hoikas deleted the dcm branch December 20, 2013 03:10
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.

None yet

2 participants