mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
Fix image's GBO's not being the right size
Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
082af30c63
commit
4641420bb3
@ -82,16 +82,16 @@ CImage::CImage (CScene* scene, Core::Objects::CImage* image) :
|
||||
ITexture::TextureFormat::ARGB8888,
|
||||
this->m_texture->getFlags (),
|
||||
1,
|
||||
this->m_texture->getTextureWidth (), this->m_texture->getTextureHeight (),
|
||||
this->m_texture->getTextureWidth (), this->m_texture->getTextureHeight ()
|
||||
this->m_texture->getRealWidth (), this->m_texture->getRealHeight (),
|
||||
this->m_texture->getRealWidth (), this->m_texture->getRealHeight ()
|
||||
);
|
||||
this->m_currentSubFBO = this->m_subFBO = scene->createFBO (
|
||||
nameB.str (),
|
||||
ITexture::TextureFormat::ARGB8888,
|
||||
this->m_texture->getFlags (),
|
||||
1,
|
||||
this->m_texture->getTextureWidth (), this->m_texture->getTextureHeight (),
|
||||
this->m_texture->getTextureWidth (), this->m_texture->getTextureHeight ()
|
||||
this->m_texture->getRealWidth (), this->m_texture->getRealHeight (),
|
||||
this->m_texture->getRealWidth (), this->m_texture->getRealHeight ()
|
||||
);
|
||||
|
||||
GLfloat realWidth = this->m_texture->getRealWidth () / 2;
|
||||
|
Loading…
Reference in New Issue
Block a user