Fixed two bugs in Effect. 1. The shaders weren't being applied to everything, only shapes. 2. The Textual components were getting a not-shape shader but should be shapes.
This commit is contained in:
parent
adc192c6dc
commit
cf3da32681
3 changed files with 3 additions and 3 deletions
|
@ -213,7 +213,7 @@ namespace guecs {
|
|||
sf::Shader *shader_ptr = nullptr;
|
||||
|
||||
if(auto shader = get_if<Effect>(ent)) {
|
||||
if(shader->$active && !is_shape) {
|
||||
if(shader->$active) {
|
||||
auto ptr = shader->checkout_ptr();
|
||||
ptr->setUniform("is_shape", is_shape);
|
||||
// NOTE: this is needed because SFML doesn't handle shared_ptr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue