From 9fcedcc2f8096bc27d16c8429de398f273fc3f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 30 Nov 2015 14:40:37 +0100 Subject: [PATCH] [effects] Use shader traits in Resize --- effects/resize/resize.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/resize/resize.cpp b/effects/resize/resize.cpp index ba24c0ae6e..9ceb250e21 100644 --- a/effects/resize/resize.cpp +++ b/effects/resize/resize.cpp @@ -85,7 +85,8 @@ void ResizeEffect::paintWindow(EffectWindow* w, int mask, QRegion region, Window GLVertexBuffer *vbo = GLVertexBuffer::streamingBuffer(); vbo->reset(); vbo->setUseColor(true); - ShaderBinder binder(ShaderManager::ColorShader); + ShaderBinder binder(ShaderTrait::UniformColor); + binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, data.screenProjectionMatrix()); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); color.setAlphaF(alpha);