瀏覽代碼

Added more verbose OpenGL failure messages

naelstrof 8 年之前
父節點
當前提交
09787b38a2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/slop.cpp

+ 3
- 0
src/slop.cpp 查看文件

79
         try {
79
         try {
80
             window = new SlopWindow();
80
             window = new SlopWindow();
81
             success = true;
81
             success = true;
82
+        } catch( std::exception* e ) {
83
+            errorstring += std::string(e->what()) + "\n";
84
+            success = false;
82
         } catch (...) {
85
         } catch (...) {
83
             success = false;
86
             success = false;
84
         }
87
         }