Remove unnecessary variable

This commit is contained in:
Jonas Kulla 2013-09-04 11:31:35 +02:00
parent 774c9b7c8a
commit c2585660b7
1 changed files with 3 additions and 4 deletions

View File

@ -84,13 +84,12 @@ int rgssThreadFun(void *userdata)
} }
/* Check for required GL extensions */ /* Check for required GL extensions */
const char **ext = reqExt; for (int i = 0; reqExt[i]; ++i)
for (int i = 0; ext[i]; ++i)
{ {
if (!glewIsSupported(ext[i])) if (!glewIsSupported(reqExt[i]))
{ {
threadData->rgssErrorMsg = threadData->rgssErrorMsg =
QByteArray("Required GL extension \"") + ext[i] + "\" not present"; QByteArray("Required GL extension \"") + reqExt[i] + "\" not present";
threadData->ethread->requestTerminate(); threadData->ethread->requestTerminate();
threadData->rqTermAck = true; threadData->rqTermAck = true;
return 0; return 0;