groupbar: fix crash in renderGradientTo

fixes #3985
This commit is contained in:
Vaxry 2023-11-29 13:36:37 +00:00
parent 3caaa483d4
commit b80c72c7dd

View file

@ -238,6 +238,9 @@ CTitleTex::~CTitleTex() {
void renderGradientTo(CTexture& tex, const CColor& grad) {
if (!g_pCompositor->m_pLastMonitor)
return;
const Vector2D& bufferSize = g_pCompositor->m_pLastMonitor->vecPixelSize;
const auto CAIROSURFACE = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, bufferSize.x, bufferSize.y);