fixed shader ../path
[vg.git] / src / vg / vg_shader.h
index 1c9373493cc1458f0dde12fd30f29753be501c1f..6007a42dbd25bce96a97d0b2ced1586ef7b1a3af 100644 (file)
@@ -84,13 +84,16 @@ static int vg_shader_compile( struct vg_shader *shader )
       char error[260];
       char path[260];
       strcpy( path, shader->vs.orig_file );
-      avs = stb_include_file( path, "", "../shaders", error );
+      avs = stb_include_file( path, "", "../../shaders", error );
 
       strcpy( path, shader->fs.orig_file );
-      afs = stb_include_file( path, "", "../shaders", error );
+      afs = stb_include_file( path, "", "../../shaders", error );
    
       if( !avs || !afs )
       {
+         vg_error( "Could not find shader source files (%s)\n",
+               shader->vs.orig_file );
+
          free( avs );
          free( afs );
          return 0;