mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
chore: fix default uniform values not being applied in the right order
This commit is contained in:
parent
e3e377ecdd
commit
ce51cd23fa
@ -89,7 +89,7 @@ CImage::CImage (Wallpapers::CScene& scene, const Image& image) :
|
||||
if (!textures.empty ()) {
|
||||
std::string textureName = textures.begin ()->second;
|
||||
|
||||
if (textureName.find ("_rt_") == 0) {
|
||||
if (textureName.find ("_rt_") == 0 || textureName.find ("_alias_") == 0) {
|
||||
this->m_texture = this->getScene ().findFBO (textureName);
|
||||
} else {
|
||||
// get the first texture on the first pass (this one represents the image assigned to this object)
|
||||
|
@ -53,7 +53,6 @@ CPass::CPass (
|
||||
m_fboProvider (std::move(fboProvider)),
|
||||
m_target (target) {
|
||||
this->setupShaders ();
|
||||
this->setupShaderVariables ();
|
||||
}
|
||||
|
||||
std::shared_ptr<const ITexture> CPass::resolveTexture (std::shared_ptr<const ITexture> expected, int index, std::shared_ptr<const ITexture> previous) {
|
||||
@ -471,6 +470,8 @@ void CPass::setupShaders () {
|
||||
glDeleteShader (vertexShaderID);
|
||||
glDeleteShader (fragmentShaderID);
|
||||
|
||||
// first setup the default values, these will be overwritten by future values
|
||||
this->setupShaderVariables ();
|
||||
// setup uniforms
|
||||
this->setupUniforms ();
|
||||
// setup attributes too
|
||||
|
Loading…
Reference in New Issue
Block a user