mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-31 04:25:40 +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)
|
void ImageComponent::render(const glm::mat4& parentTrans)
|
||||||
{
|
{
|
||||||
if (!isVisible())
|
if (!isVisible() || mTexture == nullptr || mTargetSize == glm::vec2 {0.0f, 0.0f})
|
||||||
return;
|
return;
|
||||||
|
|
||||||
glm::mat4 trans {parentTrans * getTransform()};
|
glm::mat4 trans {parentTrans * getTransform()};
|
||||||
|
|
Loading…
Reference in a new issue