opengl: adjust blend and reduce the usage of clear
This commit is contained in:
parent
b65adf8d4a
commit
547305c7ed
3 changed files with 50 additions and 18 deletions
|
|
@ -111,6 +111,8 @@ class CHyprOpenGLImpl {
|
|||
void setMatrixScaleTranslate(const Vector2D& translate, const float& scale);
|
||||
void restoreMatrix();
|
||||
|
||||
void blend(bool enabled);
|
||||
|
||||
void makeWindowSnapshot(CWindow*);
|
||||
void makeRawWindowSnapshot(CWindow*, CFramebuffer*);
|
||||
void makeLayerSnapshot(SLayerSurface*);
|
||||
|
|
@ -159,6 +161,7 @@ class CHyprOpenGLImpl {
|
|||
bool m_bFakeFrame = false;
|
||||
bool m_bEndFrame = false;
|
||||
bool m_bApplyFinalShader = false;
|
||||
bool m_bBlend = false;
|
||||
|
||||
CShader m_sFinalScreenShader;
|
||||
CTimer m_tGlobalTimer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue