From c2585660b7841ce3a972ad60252c595106f7c0b0 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Wed, 4 Sep 2013 11:31:35 +0200 Subject: [PATCH] Remove unnecessary variable --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6476f59..9de4513 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -84,13 +84,12 @@ int rgssThreadFun(void *userdata) } /* Check for required GL extensions */ - const char **ext = reqExt; - for (int i = 0; ext[i]; ++i) + for (int i = 0; reqExt[i]; ++i) { - if (!glewIsSupported(ext[i])) + if (!glewIsSupported(reqExt[i])) { threadData->rgssErrorMsg = - QByteArray("Required GL extension \"") + ext[i] + "\" not present"; + QByteArray("Required GL extension \"") + reqExt[i] + "\" not present"; threadData->ethread->requestTerminate(); threadData->rqTermAck = true; return 0;