-
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Fix shader recompilation after error.
Previously when a filter failed its compilation, it was impossible to recompile new sources. This was caused by the fact that in RAS_Shader::LinkProgram the variable m_error was first checked and if it was true when we discard shader compilation. But this variable was set when the shader failed for the first time. At the end the shader always discarded the next compilation. To fix this issue the compilation discard is removed. In the same time the 0 and 1 are replaced by true or false for boolean variable. Bug reported by TwisterGE.
- Loading branch information
1 parent
665106f
commit 6926baf
Showing
3 changed files
with
11 additions
and
23 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