mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
Fixed some shaders not getting properly compiled (missing part of the content)
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
cec1baef30
commit
cd40950ade
@ -365,6 +365,7 @@ namespace WallpaperEngine::Render::Shaders
|
||||
// types not found, try names
|
||||
if (this->m_error == false)
|
||||
{
|
||||
this->ignoreSpaces (it);
|
||||
this->m_compiledContent += type;
|
||||
}
|
||||
else
|
||||
@ -444,9 +445,10 @@ namespace WallpaperEngine::Render::Shaders
|
||||
// check for types first
|
||||
std::string type = this->extractType (it);
|
||||
|
||||
// types not found, try names
|
||||
// type found
|
||||
if (this->m_error == false)
|
||||
{
|
||||
this->ignoreSpaces (it);
|
||||
// check for main, and take it into account, this also helps adding the includes
|
||||
std::string name = this->extractName (it);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user