mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Fixed an issue where some images would not get rendered.
This commit is contained in:
parent
db05fb3800
commit
e96aa82dd3
|
@ -384,7 +384,8 @@ void ImageComponent::updateColors()
|
|||
|
||||
void ImageComponent::render(const glm::mat4& parentTrans)
|
||||
{
|
||||
if (!isVisible() || mTexture == nullptr || mTargetSize == glm::vec2 {0.0f, 0.0f})
|
||||
if (!isVisible() || mTexture == nullptr ||
|
||||
(mTargetSize == glm::vec2 {0.0f, 0.0f} && mSize == glm::vec2 {0.0f, 0.0f}))
|
||||
return;
|
||||
|
||||
glm::mat4 trans {parentTrans * getTransform()};
|
||||
|
|
Loading…
Reference in a new issue