mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
OpenGL: Detect Adreno model number
This commit is contained in:
parent
c483d3f061
commit
a3d06e366f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user