-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1749225 - Avoid casting function pointers in glsl-to-cxx. r=aosmond
Due to the presence of multiple inheritance, casting between ShaderImpl and derived types in function pointers may be classified as undefined behavior. While the multiple inheritance chain tries to ensure that the ShaderImpl is the first in the list of class parents, this might not be sufficiently safe. Explicitly do the casting of individual parameters without casting the function pointers to work around this. Differential Revision: https://phabricator.services.mozilla.com/D136611 [ghsync] From https://hg.mozilla.org/mozilla-central/rev/ba18c6833fd629140b8e4757883f328450d5bd93
- Loading branch information
Showing
1 changed file
with
51 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters