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() {
434434 std::string glVersion = reinterpret_cast <const char *>(glGetString (GL_VERSION));
435435 std::string glVendor = reinterpret_cast <const char *>(glGetString (GL_VENDOR));
436436 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+
437447 std::string hwInfo = " GL Version: " + glVersion + " \n " +
438448 " GL Vendor: " + glVendor + " \n " +
439- " GL Renderer: " + glRenderer + " \n " ;
449+ " GL Renderer: " + glRenderer + " \n " +
450+ " Available Extensions: \n " + glExtentions + " \n " ;
440451
441452#if defined(_MSC_VER) || defined(__linux__)
442453 int vendorRegs[4 ] = {0 };
You can’t perform that action at this time.
0 commit comments