Skip to content

crash on changing renderer options - double free #5

@MamiyaOtaru

Description

@MamiyaOtaru

turning eg. detailtextures on/off, changing level, doing it again at the latest at that point causes a crash.

bisect shows it was 3211faf which was unfortunately a very large commit, but it seems to be line
line 730 in ShaderProgram:
delete CurrentSpecialization;
and line 796 in ShaderProgram:
delete CurrentSpecialization;

looks like a double free. If I comment out 730 (that happens right after the call to DeleteShader(); which includes 796) the crashes go away (in this commit and in current head)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions