Fix shader loading when the library is built statically

Signed-off-by: Thiago A. Correa <thiago.correa@gmail.com>
This commit is contained in:
Thiago A. Correa
2015-02-23 17:29:47 +08:00
committed by wang-bin
parent 82cdb53dff
commit ada94c1607
+18
View File
@@ -332,3 +332,21 @@ public:
InitFFmpegLog fflog;
}
}
// Initialize Qt Resource System when the library is built
// statically
static void initResources() {
Q_INIT_RESOURCE(shaders);
Q_INIT_RESOURCE(QtAV);
}
namespace {
class ResourceLoader {
public:
ResourceLoader() { initResources(); }
};
ResourceLoader QtAV_QRCLoader;
}