Skip to content

Commit

Permalink
Fix shader loading when the library is built statically
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago A. Correa <[email protected]>
  • Loading branch information
correa committed Feb 18, 2015
1 parent e3c6088 commit d06c7da
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/QtAV_Global.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,21 @@ class InitFFmpegLog {
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;
}

0 comments on commit d06c7da

Please sign in to comment.