Skip to content

Commit 05b1f8b

Browse files
committed
add available GL extensions to abort log
1 parent b612bd6 commit 05b1f8b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Source/System/RTEError.cpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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};

0 commit comments

Comments
 (0)