mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-29 03:26:39 +08:00
Fix shader loading when the library is built statically
Signed-off-by: Thiago A. Correa <thiago.correa@gmail.com>
This commit is contained in:
committed by
wang-bin
parent
82cdb53dff
commit
ada94c1607
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user