diff --git a/src/skel/symbian/symbian.cpp b/src/skel/symbian/symbian.cpp index b8f38ae..a07a202 100644 --- a/src/skel/symbian/symbian.cpp +++ b/src/skel/symbian/symbian.cpp @@ -96,6 +96,7 @@ static bool spinning; bool qwerty; bool touch; bool moreVram; +bool powervr; void _InputTranslateShiftKeyUpDown(RsKeyCodes *rs) { } @@ -574,6 +575,17 @@ public: eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext); + const char* renderer = (const char *)glGetString(GL_RENDERER); + if (strstr(renderer, "MBX") || strstr(renderer, "SGX")) { + // use pvrtc + powervr = true; + } else if (strstr(renderer, "VideoCore")) { + // use etc1 + } else { + User::Leave(KErrNotSupported); + return; + } + setlocale(LC_ALL, ""); setlocale(LC_CTYPE, "C"); setlocale(LC_COLLATE, "C");