Fix -Wreorder-ctor

This commit is contained in:
Vlad Zahorodnii 2022-01-21 12:13:16 +02:00
parent 45c560ea06
commit 59b21a0130
2 changed files with 5 additions and 5 deletions

View file

@ -68,8 +68,8 @@ protected:
void onDamage() override; void onDamage() override;
private: private:
EglBackend *m_backend;
EglPixmapTexture *q; EglPixmapTexture *q;
EglBackend *m_backend;
EGLImageKHR m_image = EGL_NO_IMAGE_KHR; EGLImageKHR m_image = EGL_NO_IMAGE_KHR;
}; };

View file

@ -983,14 +983,14 @@ GLRenderTarget* GLRenderTarget::popRenderTarget()
} }
GLRenderTarget::GLRenderTarget() GLRenderTarget::GLRenderTarget()
: mValid(false) : mTexture(GL_TEXTURE_2D)
, mTexture(GL_TEXTURE_2D) , mValid(false)
{ {
} }
GLRenderTarget::GLRenderTarget(const GLTexture& color) GLRenderTarget::GLRenderTarget(const GLTexture& color)
: mValid(false) : mTexture(color)
, mTexture(color) , mValid(false)
{ {
// Make sure FBO is supported // Make sure FBO is supported
if (sSupported && !mTexture.isNull()) { if (sSupported && !mTexture.isNull()) {