From d89e3a9a5abb18083a89c7c759f19cf8f9353b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 7 Jul 2013 11:47:10 +0200 Subject: [PATCH] GCC 4.5 compatibility: some explicit typing needed. --- src/Platform/NaClApplication.cpp | 3 ++- src/Platform/WindowlessNaClApplication.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Platform/NaClApplication.cpp b/src/Platform/NaClApplication.cpp index affad1c7c..7a332dd5f 100644 --- a/src/Platform/NaClApplication.cpp +++ b/src/Platform/NaClApplication.cpp @@ -59,7 +59,8 @@ NaClApplication::NaClApplication(const Arguments& arguments, const Configuration #ifndef DOXYGEN_GENERATING_OUTPUT NaClApplication::NaClApplication(const Arguments& arguments): Instance(arguments), Graphics3DClient(this), MouseLock(this), c(nullptr) { debugOutput = new ConsoleDebugOutput(this); - createContext({}); + /* GCC 4.5 can't handle {} here (wtf) */ + createContext(Configuration()); } #endif diff --git a/src/Platform/WindowlessNaClApplication.cpp b/src/Platform/WindowlessNaClApplication.cpp index 8d81deda8..4e064fcf9 100644 --- a/src/Platform/WindowlessNaClApplication.cpp +++ b/src/Platform/WindowlessNaClApplication.cpp @@ -58,7 +58,8 @@ WindowlessNaClApplication::WindowlessNaClApplication(const Arguments& arguments, #ifndef DOXYGEN_GENERATING_OUTPUT WindowlessNaClApplication::WindowlessNaClApplication(const Arguments& arguments): Instance(arguments), Graphics3DClient(this), c(nullptr) { debugOutput = new ConsoleDebugOutput(this); - createContext({}); + /* GCC 4.5 can't handle {} here (wtf) */ + createContext(Configuration()); } #endif