diff --git a/aegisub/reporter/include/platform.h b/aegisub/reporter/include/platform.h index 819a6ee35..c1235de7d 100644 --- a/aegisub/reporter/include/platform.h +++ b/aegisub/reporter/include/platform.h @@ -192,6 +192,11 @@ public: /// @return Video card renderer version /// @retval Any virtual wxString VideoVersion(); + + /// Video card OpenGL extensions + /// @return List of extensions + /// @retval Space delimited list of extensions + virtual wxString VideoExt(); //@} /// @name Windows @@ -301,7 +306,8 @@ private: enum VideoInfo { VIDEO_RENDERER, ///< Renderer VIDEO_VENDOR, ///< Vendor - VIDEO_VERSION ///< Version + VIDEO_VERSION, ///< Version + VIDEO_EXT ///< Extensions }; /// Retrieve OpenGL video information. diff --git a/aegisub/reporter/name_map.cpp b/aegisub/reporter/name_map.cpp index fcddbfe22..cf8f4ea6a 100644 --- a/aegisub/reporter/name_map.cpp +++ b/aegisub/reporter/name_map.cpp @@ -44,6 +44,7 @@ const Report::nameMap Report::HumanNames() { nMap.insert(nPair("dll", _TT("DLL"))); nMap.insert(nPair("dshowfilter", _TT("DirectShow Filters"))); nMap.insert(nPair("editfontsize", _TT("Edit Font Size"))); + nMap.insert(nPair("extensions" , _TT("Extensions"))); nMap.insert(nPair("features", _TT("Features"))); nMap.insert(nPair("features2", _TT("Features2"))); nMap.insert(nPair("firewall", _TT("Firewall Installed"))); diff --git a/aegisub/reporter/platform.cpp b/aegisub/reporter/platform.cpp index 0bc615d4e..1e53ac9e9 100644 --- a/aegisub/reporter/platform.cpp +++ b/aegisub/reporter/platform.cpp @@ -81,6 +81,9 @@ wxString Platform::GetVideoInfo(enum Platform::VideoInfo which) { wxString value; switch (which) { + case VIDEO_EXT: + value = wxString(glGetString(GL_EXTENSIONS)); + break; case VIDEO_RENDERER: value = wxString(glGetString(GL_RENDERER)); break; @@ -173,6 +176,10 @@ wxString Platform::VideoVersion() { return GetVideoInfo(VIDEO_VERSION); } +wxString Platform::VideoExt() { + return GetVideoInfo(VIDEO_EXT); +} + #ifdef __APPLE__ wxString Platform::PatchLevel() { diff --git a/aegisub/reporter/report.cpp b/aegisub/reporter/report.cpp index 6e3ae89b9..0cd6dfae8 100644 --- a/aegisub/reporter/report.cpp +++ b/aegisub/reporter/report.cpp @@ -95,6 +95,7 @@ Report::XMLReport Report::ReportCreate() { Add(display, "vendor", p->VideoVendor()); Add(display, "renderer", p->VideoRenderer()); Add(display, "version", p->VideoVersion()); + Add(display, "extensions", p->VideoExt()); Add(display, "depth", p->DisplayDepth()); Add(display, "colour", p->DisplayColour()); Add(display, "size", p->DisplaySize());