mirror of
https://github.com/glest/glest-source.git
synced 2025-08-25 17:20:43 +02:00
Code cleanup
This commit is contained in:
@@ -264,11 +264,11 @@ namespace Shared {
|
||||
float TextFTGL::Advance(const char* str, const int len) {
|
||||
float result = ftFont->Advance(str, len);
|
||||
|
||||
GLenum error = glGetError();
|
||||
/*GLenum error = glGetError();
|
||||
if (error != GL_NO_ERROR) {
|
||||
printf("\n[%s::%s] Line %d Error = %d [%s] for text [%s]\n", __FILE__, __FUNCTION__, __LINE__, error, gluErrorString(error), str);
|
||||
fflush(stdout);
|
||||
}
|
||||
}*/
|
||||
|
||||
if (ftFont->Error()) {
|
||||
char szBuf[8096] = "";
|
||||
|
@@ -421,7 +421,7 @@ namespace Shared {
|
||||
|
||||
void TextRenderer3DGl::specialFTGLErrorCheckWorkaround(string text) {
|
||||
|
||||
for (GLenum error = glGetError(); error != GL_NO_ERROR; error = glGetError()) {
|
||||
/*for (GLenum error = glGetError(); error != GL_NO_ERROR; error = glGetError()) {
|
||||
//error = glGetError();
|
||||
//if(error) {
|
||||
if (SystemFlags::VERBOSE_MODE_ENABLED) printf("\n\nIn [%s::%s Line: %d] error = %d for text [%s]\n\n", __FILE__, __FUNCTION__, __LINE__, error, text.c_str());
|
||||
@@ -437,7 +437,7 @@ namespace Shared {
|
||||
}
|
||||
|
||||
currentFTGLErrorCount++;
|
||||
}
|
||||
}*/
|
||||
//}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user