Fix windows build

master
huxingyi 2018-05-10 03:21:24 -07:00
parent 078543b80e
commit 8a6a2a6640
2 changed files with 3 additions and 2 deletions

View File

@ -126,6 +126,7 @@ QMAKE_CXXFLAGS += -std=c++11
win32 { win32 {
LIBS += -luser32 LIBS += -luser32
LIBS += -lopengl32
isEmpty(BOOST_INCLUDEDIR) { isEmpty(BOOST_INCLUDEDIR) {
BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR) BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR)

View File

@ -46,7 +46,7 @@ typedef int lm_type;
typedef struct lm_context lm_context; typedef struct lm_context lm_context;
#include <QOpenGLFunctions> #include <QOpenGLExtraFunctions>
typedef struct lm_vec3 { float x, y, z; } lm_vec3; typedef struct lm_vec3 { float x, y, z; } lm_vec3;
@ -71,7 +71,7 @@ typedef struct
unsigned int vertexCount, indexCount; unsigned int vertexCount, indexCount;
} scene_t; } scene_t;
class QtLightMapper : public QOpenGLFunctions class QtLightMapper : public QOpenGLExtraFunctions
{ {
public: public:
bool m_useCore = false; bool m_useCore = false;