mirror of
https://github.com/edubart/otclient.git
synced 2025-10-22 15:25:54 +02:00
allow use of mipmaps in framebuffers
This commit is contained in:
@@ -83,6 +83,11 @@ void FrameBuffer::release()
|
||||
g_graphics.setViewportSize(m_oldViewportSize);
|
||||
}
|
||||
|
||||
void FrameBuffer::generateMipmaps()
|
||||
{
|
||||
m_texture->generateMipmaps();
|
||||
}
|
||||
|
||||
void FrameBuffer::draw(const Rect& dest)
|
||||
{
|
||||
g_painter.drawTexturedRect(dest, m_texture);
|
||||
|
Reference in New Issue
Block a user