Commit 6bf55142 authored by Emmanuele Bassi's avatar Emmanuele Bassi

demo: Change the resource path for the shaders

We need to use the same name as the "plugin" so that the main UI will
display the resources inside a notebook tab.
parent 843475bd
......@@ -140,7 +140,7 @@
<gresource prefix="/popover">
<file>popover.ui</file>
</gresource>
<gresource prefix="/shaders">
<gresource prefix="/glarea">
<file>glarea-fragment.glsl</file>
<file>glarea-vertex.glsl</file>
</gresource>
......
......@@ -102,7 +102,7 @@ init_shaders (GLuint *program_out,
int status;
GBytes *source;
source = g_resources_lookup_data ("/shaders/glarea-vertex.glsl", 0, NULL);
source = g_resources_lookup_data ("/glarea/glarea-vertex.glsl", 0, NULL);
vertex = create_shader (GL_VERTEX_SHADER, g_bytes_get_data (source, NULL));
g_bytes_unref (source);
......@@ -112,7 +112,7 @@ init_shaders (GLuint *program_out,
return;
}
source = g_resources_lookup_data ("/shaders/glarea-fragment.glsl", 0, NULL);
source = g_resources_lookup_data ("/glarea/glarea-fragment.glsl", 0, NULL);
fragment = create_shader (GL_FRAGMENT_SHADER, g_bytes_get_data (source, NULL));
g_bytes_unref (source);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment