mirror of
https://github.com/lubosz/overte.git
synced 2025-08-27 11:25:52 +02:00
call Q_INIT_RESOURCE from mains to handle static link
This commit is contained in:
parent
7b5af1e3fd
commit
9a98e07b2d
3 changed files with 5 additions and 3 deletions
|
@ -18,6 +18,9 @@
|
|||
#include "Application.h"
|
||||
|
||||
int main(int argc, const char * argv[]) {
|
||||
|
||||
Q_INIT_RESOURCE(fonts);
|
||||
|
||||
QElapsedTimer startupTime;
|
||||
startupTime.start();
|
||||
|
||||
|
|
|
@ -88,9 +88,6 @@ const float DEFAULT_POINT_SIZE = 12;
|
|||
|
||||
class Font {
|
||||
public:
|
||||
|
||||
Font() { Q_INIT_RESOURCE(fonts); }
|
||||
|
||||
using TexturePtr = QSharedPointer < QOpenGLTexture >;
|
||||
using VertexArrayPtr = QSharedPointer< QOpenGLVertexArrayObject >;
|
||||
using ProgramPtr = QSharedPointer < QOpenGLShaderProgram >;
|
||||
|
|
|
@ -210,6 +210,8 @@ void QTestWindow::draw() {
|
|||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
Q_INIT_RESOURCE(fonts);
|
||||
|
||||
QApplication app(argc, argv);
|
||||
QTestWindow window;
|
||||
QTimer timer;
|
||||
|
|
Loading…
Reference in a new issue