Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix conversion of realtime maps. (#857)
The issue #855 reports a bug related to the cube and planar map, this is explained by the fact that the texture renderers try to convert before the textures are available. The texture are converted in reload material step which is proceeded after conversion and post conversion. In the same time leaving texture renderer conversion the ability to be mutlithread could be very dangerous as they could create FBO and manipulate any other OpenGL setting for initialization. The issue is solved by making KX_BlenderMaterial::InitTextures public and call it into post conversion step and move after in the same step the conversion of texture renderers. As the scene converter is constant in post conversion (it's forbidden to create data but allowed to modify) the function starting with Find are now constant and their bodies is adapted to avoid implicit insert in std::map. Fix issue #855.
- Loading branch information
1 parent
607351f
commit eebb46f
Showing
6 changed files
with
67 additions
and
57 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
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
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
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
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
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