- added more debug info for font error mentioend in forums by james123

This commit is contained in:
Mark Vejvoda 2011-08-31 00:06:50 +00:00
parent 1a6cdf3a06
commit b2fc331876
3 changed files with 4 additions and 4 deletions

View File

@ -265,7 +265,7 @@ void ParticleRendererGl::renderModel(GameParticleSystem *ps, ModelRenderer *mr){
float t = ps->getTween();
if(t < 0.0f || t > 1.0f) {
printf("ERROR setting tween to [%f]\n",t);
printf("In [%s::%s Line: %d] ERROR setting tween to [%f]\n",__FILE__,__FUNCTION__,__LINE__,t);
assert(t >= 0.0f && t <= 1.0f);
}
model->updateInterpolationData(t, false);

View File

@ -408,8 +408,8 @@ void TextRenderer3DGl::specialFTGLErrorCheckWorkaround(string text) {
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());
if(currentFTGLErrorCount > 5) {
printf("\n**FTGL Error = %d for text [%s] currentFTGLErrorCount = %d\n\n",error,text.c_str(),currentFTGLErrorCount);
if(currentFTGLErrorCount > 0) {
printf("\n**FTGL Error = %d [%s] for text [%s] currentFTGLErrorCount = %d\n\n",error,gluErrorString(error),text.c_str(),currentFTGLErrorCount);
fflush(stdout);
assertGlWithErrorNumber(error);

View File

@ -506,7 +506,7 @@ void GameParticleSystem::setTween(float relative,float absolute) {
}
}
if(tween < 0.0f || tween > 1.0f) {
printf("ERROR setting tween to [%f]\n",tween);
printf("In [%s::%s Line: %d] ERROR setting tween to [%f]\n",__FILE__,__FUNCTION__,__LINE__,tween);
assert(tween >= 0.0f && tween <= 1.0f);
}