summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-12 16:08:50 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-12 17:47:53 +0100
commiteea6fad65d5c9fecfb47c4a1c516c253cee85fd2 (patch)
treeb7f5ec67e0b27ce0bc5cc4274d93c4fb7fed38ef /test
parentef75de200a53029d788b7b95d5548b59e3f991c3 (diff)
test: fix non-win32 build
Diffstat (limited to 'test')
-rw-r--r--test/app.hpp4
-rw-r--r--test/main.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/test/app.hpp b/test/app.hpp
index c9bcfcee..26a0e41a 100644
--- a/test/app.hpp
+++ b/test/app.hpp
@@ -1,12 +1,14 @@
#pragma once
#include <Magnum/Magnum.h>
-#include <Magnum/Platform/WindowlessWglApplication.h>
#ifdef __APPLE__
+#include <Magnum/Platform/WindowlessCglApplication.h>
#define FM_APPLICATION Platform::WindowlessCglApplication
#elif defined _WIN32
+#include <Magnum/Platform/WindowlessWglApplication.h>
#define FM_APPLICATION Platform::WindowlessWglApplication
#else
+#include <Magnum/Platform/WindowlessGlxApplication.h>
#define FM_APPLICATION Platform::WindowlessGlxApplication
#endif
diff --git a/test/main.cpp b/test/main.cpp
index d20d5d26..1dc91e9e 100644
--- a/test/main.cpp
+++ b/test/main.cpp
@@ -4,7 +4,7 @@
namespace floormat {
floormat::floormat(const Arguments& arguments):
- Platform::WindowlessWglApplication{
+ FM_APPLICATION {
arguments,
Configuration{}
}