mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-09-14 13:56:48 +08:00
~ Fixed some backgrounds being black because of wrong composite layer ordering
~ Videos should no longer appear vertically mirrored Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
parent
96fb8a6700
commit
b920e94870
@ -63,12 +63,12 @@ CVideo::CVideo (Core::CVideo* video, CContainer* container) :
|
|||||||
|
|
||||||
// inverted positions so the final texture is rendered properly
|
// inverted positions so the final texture is rendered properly
|
||||||
GLfloat position [] = {
|
GLfloat position [] = {
|
||||||
1.0f, -1.0f, 0.0f,
|
-1.0f, 1.0f, 0.0f,
|
||||||
-1.0, -1.0f, 0.0f,
|
1.0, 1.0f, 0.0f,
|
||||||
1.0f, 1.0f, 0.0f,
|
|
||||||
1.0f, 1.0f, 0.0f,
|
|
||||||
-1.0f, -1.0f, 0.0f,
|
-1.0f, -1.0f, 0.0f,
|
||||||
-1.0f, 1.0f, 0.0f
|
-1.0f, -1.0f, 0.0f,
|
||||||
|
1.0f, 1.0f, 0.0f,
|
||||||
|
1.0f, -1.0f, 0.0f
|
||||||
};
|
};
|
||||||
|
|
||||||
glGenBuffers (1, &this->m_texCoordBuffer);
|
glGenBuffers (1, &this->m_texCoordBuffer);
|
||||||
|
@ -57,8 +57,8 @@ CImage::CImage (CScene* scene, Core::Objects::CImage* image) :
|
|||||||
nameA << "_rt_imageLayerComposite_" << this->getImage ()->getId () << "_a";
|
nameA << "_rt_imageLayerComposite_" << this->getImage ()->getId () << "_a";
|
||||||
nameB << "_rt_imageLayerComposite_" << this->getImage ()->getId () << "_b";
|
nameB << "_rt_imageLayerComposite_" << this->getImage ()->getId () << "_b";
|
||||||
|
|
||||||
this->m_currentMainFBO = this->m_mainFBO = scene->createFBO (nameA.str (), ITexture::TextureFormat::ARGB8888, 1, this->m_texture->getRealWidth (), this->m_texture->getRealHeight (), this->m_texture->getRealWidth (), this->m_texture->getRealHeight ());
|
this->m_currentMainFBO = this->m_mainFBO = scene->createFBO (nameB.str (), ITexture::TextureFormat::ARGB8888, 1, 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, 1, this->m_texture->getRealWidth (), this->m_texture->getRealHeight (), this->m_texture->getRealWidth (), this->m_texture->getRealHeight ());
|
this->m_currentSubFBO = this->m_subFBO = scene->createFBO (nameA.str (), ITexture::TextureFormat::ARGB8888, 1, this->m_texture->getRealWidth (), this->m_texture->getRealHeight (), this->m_texture->getRealWidth (), this->m_texture->getRealHeight ());
|
||||||
|
|
||||||
GLfloat realWidth = this->m_texture->getRealWidth () / 2;
|
GLfloat realWidth = this->m_texture->getRealWidth () / 2;
|
||||||
GLfloat realHeight = this->m_texture->getRealHeight () / 2;
|
GLfloat realHeight = this->m_texture->getRealHeight () / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user