From 8a6a2a6640bcf680f88411c0ffac0321c08e7e24 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Thu, 10 May 2018 03:21:24 -0700 Subject: [PATCH] Fix windows build --- dust3d.pro | 1 + src/qtlightmapper.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dust3d.pro b/dust3d.pro index 5abd72e2..79b516ac 100644 --- a/dust3d.pro +++ b/dust3d.pro @@ -126,6 +126,7 @@ QMAKE_CXXFLAGS += -std=c++11 win32 { LIBS += -luser32 + LIBS += -lopengl32 isEmpty(BOOST_INCLUDEDIR) { BOOST_INCLUDEDIR = $$(BOOST_INCLUDEDIR) diff --git a/src/qtlightmapper.h b/src/qtlightmapper.h index fcd8bcac..7754b8f4 100644 --- a/src/qtlightmapper.h +++ b/src/qtlightmapper.h @@ -46,7 +46,7 @@ typedef int lm_type; typedef struct lm_context lm_context; -#include +#include typedef struct lm_vec3 { float x, y, z; } lm_vec3; @@ -71,7 +71,7 @@ typedef struct unsigned int vertexCount, indexCount; } scene_t; -class QtLightMapper : public QOpenGLFunctions +class QtLightMapper : public QOpenGLExtraFunctions { public: bool m_useCore = false;