mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05: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) {
|
||||
mTexture->bind();
|
||||
|
||||
|
@ -493,7 +498,6 @@ void GIFAnimComponent::render(const glm::mat4& parentTrans)
|
|||
vertices->convertBGRAToRGBA = true;
|
||||
|
||||
// Render it.
|
||||
Renderer::setMatrix(trans);
|
||||
Renderer::drawTriangleStrips(&vertices[0], 4);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue