mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 15:15:37 +00:00
Prevented ImageComponent from attempting to render an empty texture.
This commit is contained in:
parent
dc20a9e21b
commit
24f65a2560
|
@ -384,7 +384,7 @@ void ImageComponent::updateColors()
|
|||
|
||||
void ImageComponent::render(const glm::mat4& parentTrans)
|
||||
{
|
||||
if (!isVisible())
|
||||
if (!isVisible() || mTexture == nullptr || mTargetSize == glm::vec2 {0.0f, 0.0f})
|
||||
return;
|
||||
|
||||
glm::mat4 trans {parentTrans * getTransform()};
|
||||
|
|
Loading…
Reference in a new issue