Binding shaders moved explicitly to ShaderManager.

This commit is contained in:
Martin Gräßlin 2011-01-30 14:01:21 +01:00
parent 45c7610d22
commit cf94a0e8f8

View file

@ -278,8 +278,6 @@ class KWIN_EXPORT GLShader
~GLShader();
bool isValid() const { return mValid; }
void bind();
void unbind();
int uniformLocation(const char* name);
bool setUniform(const char* name, float value);
@ -311,6 +309,8 @@ class KWIN_EXPORT GLShader
GLShader();
bool loadFromFiles(const QString& vertexfile, const QString& fragmentfile);
bool load(const QString& vertexsource, const QString& fragmentsource);
void bind();
void unbind();
private: