mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Added debug overlay support to GIFAnimComponent.
This commit is contained in:
parent
8497967510
commit
bebc9d58cf
|
@ -471,6 +471,11 @@ void GIFAnimComponent::render(const glm::mat4& parentTrans)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Renderer::setMatrix(trans);
|
||||||
|
|
||||||
|
if (Settings::getInstance()->getBool("DebugImage"))
|
||||||
|
Renderer::drawRect(0.0f, 0.0f, mSize.x, mSize.y, 0xFF000033, 0xFF000033);
|
||||||
|
|
||||||
if (mTexture->getSize().x != 0.0f) {
|
if (mTexture->getSize().x != 0.0f) {
|
||||||
mTexture->bind();
|
mTexture->bind();
|
||||||
|
|
||||||
|
@ -493,7 +498,6 @@ void GIFAnimComponent::render(const glm::mat4& parentTrans)
|
||||||
vertices->convertBGRAToRGBA = true;
|
vertices->convertBGRAToRGBA = true;
|
||||||
|
|
||||||
// Render it.
|
// Render it.
|
||||||
Renderer::setMatrix(trans);
|
|
||||||
Renderer::drawTriangleStrips(&vertices[0], 4);
|
Renderer::drawTriangleStrips(&vertices[0], 4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue