mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
OpenGL: Detect Adreno model number
This commit is contained in:
1 parent
c483d3f061
commit
a3d06e366f
2 files changed
+2
No files matched your search
@@ -160,6 +160,7 @@ void CheckGLExtensions() {
|
||||
gl_extensions.gpuVendor = GPU_VENDOR_IMGTEC;
|
||||
} else if (vendor == "Qualcomm") {
|
||||
gl_extensions.gpuVendor = GPU_VENDOR_QUALCOMM;
|
||||
sscanf(renderer, "Adreno (TM) %d", &gl_extensions.modelNumber);
|
||||
} else if (vendor == "Broadcom") {
|
||||
gl_extensions.gpuVendor = GPU_VENDOR_BROADCOM;
|
||||
// Just for reference: Galaxy Y has renderer == "VideoCore IV HW"
|
||||
|
||||
@@ -34,6 +34,7 @@ struct GLExtensions {
|
||||
int ver[3];
|
||||
int gpuVendor;
|
||||
char model[128];
|
||||
int modelNumber;
|
||||
|
||||
bool IsGLES;
|
||||
bool IsCoreContext;
|
||||
|
||||
Reference in new issue
Block a user