From 67adad6cf016fe39432f0b62bccc535a1f937ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 27 Jul 2013 11:45:40 +0200 Subject: [PATCH] Move CheckGLExtensions to InitGraphics from EmuScreen, trying to fix #2900 --- UI/EmuScreen.cpp | 1 - UI/NativeApp.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/EmuScreen.cpp b/UI/EmuScreen.cpp index f69e86f7ad..0862803cb2 100644 --- a/UI/EmuScreen.cpp +++ b/UI/EmuScreen.cpp @@ -60,7 +60,6 @@ EmuScreen::EmuScreen(const std::string &filename) } void EmuScreen::bootGame(const std::string &filename) { - CheckGLExtensions(); std::string fileToStart = filename; // This is probably where we should start up the emulated PSP. INFO_LOG(BOOT, "Starting up hardware."); diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index c4948b8c7a..459ae3ce64 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -379,11 +379,12 @@ void NativeInit(int argc, const char *argv[], } #endif } - + screenManager->switchScreen(new LogoScreen(boot_filename)); } void NativeInitGraphics() { + CheckGLExtensions(); gl_lost_manager_init(); ui_draw2d.SetAtlas(&ui_atlas);