mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
Detect whether rendering on powervr or videocore
This commit is contained in:
parent
78e6740735
commit
ad5d8af63b
1 changed files with 12 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ static bool spinning;
|
||||||
bool qwerty;
|
bool qwerty;
|
||||||
bool touch;
|
bool touch;
|
||||||
bool moreVram;
|
bool moreVram;
|
||||||
|
bool powervr;
|
||||||
|
|
||||||
void _InputTranslateShiftKeyUpDown(RsKeyCodes *rs) {
|
void _InputTranslateShiftKeyUpDown(RsKeyCodes *rs) {
|
||||||
}
|
}
|
||||||
|
|
@ -574,6 +575,17 @@ public:
|
||||||
|
|
||||||
eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext);
|
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_ALL, "");
|
||||||
setlocale(LC_CTYPE, "C");
|
setlocale(LC_CTYPE, "C");
|
||||||
setlocale(LC_COLLATE, "C");
|
setlocale(LC_COLLATE, "C");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue