OpenGL: Detect Adreno model number

This commit is contained in:
Henrik Rydgård 2020-11-11 22:34:31 +01:00
parent c483d3f061
commit a3d06e366f
2 changed files with 2 additions and 0 deletions

View File

@ -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"

View File

@ -34,6 +34,7 @@ struct GLExtensions {
int ver[3];
int gpuVendor;
char model[128];
int modelNumber;
bool IsGLES;
bool IsCoreContext;