mirror of
https://github.com/edubart/otclient.git
synced 2025-11-06 05:26:23 +01:00
graphics fixes
* zooming without real FBOs kinda works, but with lower quality * hardware detection for glGenerateMipmaps * possibility to disable bilinear filtering, mipmaps, framebuffers, and realtime mipmap generation in g_graphics * otclient works well using 3D acceleration in VirtualBox again * many fixes regarding FBOs fallback implementation
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <framework/graphics/painter.h>
|
||||
#include <framework/graphics/texture.h>
|
||||
#include <framework/graphics/texturemanager.h>
|
||||
#include <framework/graphics/graphics.h>
|
||||
|
||||
void UIWidget::initImage()
|
||||
{
|
||||
@@ -167,7 +168,7 @@ void UIWidget::drawImage(const Rect& screenCoords)
|
||||
m_imageTexture->setSmooth(m_imageSmooth);
|
||||
|
||||
// this will increase fps when rendering larger images, like the background, and improve image quality
|
||||
if(m_imageSmooth && !m_imageTexture->hasMipmaps())
|
||||
if(m_imageSmooth && g_graphics.canGenerateMipmaps() && !m_imageTexture->hasMipmaps())
|
||||
m_imageTexture->generateMipmaps();
|
||||
|
||||
g_painter.setColor(m_imageColor);
|
||||
|
||||
Reference in New Issue
Block a user