mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 10:11:10 -06:00
First draft of SendSystemInfoDialog
This commit is contained in:
parent
37219fe4f3
commit
faa808b385
8 changed files with 401 additions and 19 deletions
|
|
@ -27,7 +27,7 @@ namespace Slic3r {
|
|||
namespace GUI {
|
||||
|
||||
// A safe wrapper around glGetString to report a "N/A" string in case glGetString returns nullptr.
|
||||
inline std::string gl_get_string_safe(GLenum param, const std::string& default_value)
|
||||
std::string gl_get_string_safe(GLenum param, const std::string& default_value)
|
||||
{
|
||||
const char* value = (const char*)::glGetString(param);
|
||||
return std::string((value != nullptr) ? value : default_value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue