diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index 19885810d2..928e4050e0 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -84,7 +84,7 @@ void LanczosFilter::init() if (gl->isRadeon() && gl->chipClass() < R600) return; } - m_shader.reset(ShaderManager::instance()->loadFragmentShader(ShaderManager::SimpleShader, ":/resources/lanczos-fragment.glsl")); + m_shader.reset(ShaderManager::instance()->loadFragmentShader(ShaderManager::SimpleShader, ":/resources/shaders/1.10/lanczos-fragment.glsl")); if (m_shader->isValid()) { ShaderBinder binder(m_shader.data()); m_uTexUnit = m_shader->uniformLocation("texUnit"); diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp index eb5ec69f83..a962cfaef4 100644 --- a/libkwineffects/kwinglutils.cpp +++ b/libkwineffects/kwinglutils.cpp @@ -791,9 +791,9 @@ void ShaderManager::popShader() GLShader *ShaderManager::loadFragmentShader(ShaderType vertex, const QString &fragmentFile) { const char *vertexFile[] = { - ":/resources/scene-vertex.glsl", - ":/resources/scene-generic-vertex.glsl", - ":/resources/scene-color-vertex.glsl" + ":/resources/shaders/1.10/scene-vertex.glsl", + ":/resources/shaders/1.10/scene-generic-vertex.glsl", + ":/resources/shaders/1.10/scene-color-vertex.glsl" }; GLShader *shader = new GLShader(vertexFile[vertex], fragmentFile); @@ -811,9 +811,9 @@ GLShader *ShaderManager::loadVertexShader(ShaderType fragment, const QString &ve { // The Simple and Generic shaders use same fragment shader const char *fragmentFile[] = { - ":/resources/scene-fragment.glsl", - ":/resources/scene-fragment.glsl", - ":/resources/scene-color-fragment.glsl" + ":/resources/shaders/1.10/scene-fragment.glsl", + ":/resources/shaders/1.10/scene-fragment.glsl", + ":/resources/shaders/1.10/scene-color-fragment.glsl" }; GLShader *shader = new GLShader(vertexFile, fragmentFile[fragment]); @@ -837,15 +837,15 @@ GLShader *ShaderManager::loadShaderFromCode(const QByteArray &vertexSource, cons void ShaderManager::initShaders() { const char *vertexFile[] = { - ":/resources/scene-vertex.glsl", - ":/resources/scene-generic-vertex.glsl", - ":/resources/scene-color-vertex.glsl", + ":/resources/shaders/1.10/scene-vertex.glsl", + ":/resources/shaders/1.10/scene-generic-vertex.glsl", + ":/resources/shaders/1.10/scene-color-vertex.glsl", }; const char *fragmentFile[] = { - ":/resources/scene-fragment.glsl", - ":/resources/scene-fragment.glsl", - ":/resources/scene-color-fragment.glsl", + ":/resources/shaders/1.10/scene-fragment.glsl", + ":/resources/shaders/1.10/scene-fragment.glsl", + ":/resources/shaders/1.10/scene-color-fragment.glsl", }; // Be optimistic diff --git a/resources.qrc b/resources.qrc index 03a5c1c844..3257d85b9e 100644 --- a/resources.qrc +++ b/resources.qrc @@ -1,10 +1,10 @@ - lanczos-fragment.glsl - scene-vertex.glsl - scene-fragment.glsl - scene-color-vertex.glsl - scene-color-fragment.glsl - scene-generic-vertex.glsl + shaders/1.10/lanczos-fragment.glsl + shaders/1.10/scene-vertex.glsl + shaders/1.10/scene-fragment.glsl + shaders/1.10/scene-color-vertex.glsl + shaders/1.10/scene-color-fragment.glsl + shaders/1.10/scene-generic-vertex.glsl diff --git a/lanczos-fragment.glsl b/shaders/1.10/lanczos-fragment.glsl similarity index 100% rename from lanczos-fragment.glsl rename to shaders/1.10/lanczos-fragment.glsl diff --git a/scene-color-fragment.glsl b/shaders/1.10/scene-color-fragment.glsl similarity index 100% rename from scene-color-fragment.glsl rename to shaders/1.10/scene-color-fragment.glsl diff --git a/scene-color-vertex.glsl b/shaders/1.10/scene-color-vertex.glsl similarity index 100% rename from scene-color-vertex.glsl rename to shaders/1.10/scene-color-vertex.glsl diff --git a/scene-fragment.glsl b/shaders/1.10/scene-fragment.glsl similarity index 100% rename from scene-fragment.glsl rename to shaders/1.10/scene-fragment.glsl diff --git a/scene-generic-vertex.glsl b/shaders/1.10/scene-generic-vertex.glsl similarity index 100% rename from scene-generic-vertex.glsl rename to shaders/1.10/scene-generic-vertex.glsl diff --git a/scene-vertex.glsl b/shaders/1.10/scene-vertex.glsl similarity index 100% rename from scene-vertex.glsl rename to shaders/1.10/scene-vertex.glsl