forked from AuroraMiddleware/gtk
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:
parent
843475bd2e
commit
6bf55142ee
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user