mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
- got built in memory leak working. Just edit leak_dumper.h and uncomment:
//#define SL_LEAK_DUMP - got better / more accurate stack dumps when we detect errors in game. - Both of these need to be worked on in windows next, win32 may not compile for now until i fix it on that platform. - BE VERY CAREFUL when working in leak_dumper.* it may cause GCC and your system to crash if you don't know what you are doing!
This commit is contained in:
@@ -144,7 +144,7 @@ void Renderer::checkGlCaps() {
|
||||
message += "MegaGlest needs at least version 1.3 to work\n";
|
||||
message += "You may solve this problem by installing your latest video card drivers";
|
||||
|
||||
throw runtime_error(message.c_str());
|
||||
throw megaglest_runtime_error(message.c_str());
|
||||
}
|
||||
|
||||
//opengl 1.4 or extension
|
||||
@@ -157,7 +157,7 @@ void Renderer::checkGlCaps() {
|
||||
void Renderer::checkExtension(const string &extension, const string &msg) {
|
||||
if(isGlExtensionSupported(extension.c_str()) == false) {
|
||||
string str= "OpenGL extension not supported: " + extension + ", required for " + msg;
|
||||
throw runtime_error(str);
|
||||
throw megaglest_runtime_error(str);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user