From 4e360279241e2f585405bccff306ec83971516e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 31 Dec 2010 14:20:53 +0100 Subject: [PATCH] Drop unused bindAttribute Location function. --- lib/kwinglutils.cpp | 6 ------ lib/kwinglutils.h | 9 --------- 2 files changed, 15 deletions(-) diff --git a/lib/kwinglutils.cpp b/lib/kwinglutils.cpp index 2b51c7c40d..9442e284ce 100644 --- a/lib/kwinglutils.cpp +++ b/lib/kwinglutils.cpp @@ -1087,12 +1087,6 @@ float GLShader::textureWidth() return mTextureWidth; } -void GLShader::bindAttributeLocation(int index, const char* name) - { - glBindAttribLocation(mProgram, index, name); - // TODO: relink the shader - } - QMatrix4x4 GLShader::getUniformMatrix4x4(const char* name) { int location = uniformLocation(name); diff --git a/lib/kwinglutils.h b/lib/kwinglutils.h index 342a18e6d5..7dffd6c03b 100644 --- a/lib/kwinglutils.h +++ b/lib/kwinglutils.h @@ -249,15 +249,6 @@ class KWIN_EXPORT GLShader bool setUniform(const char* name, const QColor& color); int attributeLocation(const char* name); bool setAttribute(const char* name, float value); - /** - * Binds an attribute location for this shader. - * The rendering pipeline assumes vertices to be bound to index 0 - * and texcoords to index 1. - * @param index the index of the location to be bound - * @param name the name of the attribute - * @since 4.7 - */ - void bindAttributeLocation(int index, const char* name); /** * @return The value of the uniform as a matrix * @since 4.7