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.
This commit is contained in:
Emmanuele Bassi 2015-02-09 19:32:38 +00:00
parent 843475bd2e
commit 6bf55142ee
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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);