File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -434,9 +434,20 @@ void RTEError::DumpHardwareInfo() {
434
434
std::string glVersion = reinterpret_cast <const char *>(glGetString (GL_VERSION));
435
435
std::string glVendor = reinterpret_cast <const char *>(glGetString (GL_VENDOR));
436
436
std::string glRenderer = reinterpret_cast <const char *>(glGetString (GL_RENDERER));
437
+
438
+ std::string glExtentions = " " ;
439
+ GLint numExt = 0 ;
440
+ glGetIntegerv (GL_NUM_EXTENSIONS, &numExt);
441
+ for (GLint i = 0 ; i < numExt; i++) {
442
+ glExtentions += " \t " ;
443
+ glExtentions += reinterpret_cast <const char *>(glGetStringi (GL_EXTENSIONS, i));
444
+ glExtentions += " \n " ;
445
+ }
446
+
437
447
std::string hwInfo = " GL Version: " + glVersion + " \n " +
438
448
" GL Vendor: " + glVendor + " \n " +
439
- " GL Renderer: " + glRenderer + " \n " ;
449
+ " GL Renderer: " + glRenderer + " \n " +
450
+ " Available Extensions: \n " + glExtentions + " \n " ;
440
451
441
452
#if defined(_MSC_VER) || defined(__linux__)
442
453
int vendorRegs[4 ] = {0 };
You can’t perform that action at this time.
0 commit comments