summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-09-22 09:17:28 +0000
committernakeee <nakeee@gmail.com>2008-09-22 09:17:28 +0000
commitdbc5a154b6dc19c8aa7a8dab7ed592d5e5dc7880 (patch)
treeb5061b66bf8904fd4d817ac55d862014304544aa /Source
parent2b4037df8e2824651776f3eee28a0438b2fbad50 (diff)
Panic when failing to create Renderer in the opengl plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@607 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp
index f313ee4dc5..69b9cc44fc 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp
@@ -190,11 +190,12 @@ void Video_DoState(unsigned char **ptr, int mode) {
void Video_Prepare(void)
{
- OpenGL_MakeCurrent();
- if (!Renderer::Create2()) {
+ OpenGL_MakeCurrent();
+ if (!Renderer::Create2()) {
g_VideoInitialize.pLog("Renderer::Create2 failed\n", TRUE);
- return;
- }
+ PanicAlert("Can't create opengl renderer. You might be missing some required opengl extensions, check the logs for more info");
+ exit(1);
+ }
TextureMngr::Init();