- added more debug info for font error mentioend in forums by james123
This commit is contained in:
parent
1a6cdf3a06
commit
b2fc331876
|
@ -265,7 +265,7 @@ void ParticleRendererGl::renderModel(GameParticleSystem *ps, ModelRenderer *mr){
|
||||||
float t = ps->getTween();
|
float t = ps->getTween();
|
||||||
|
|
||||||
if(t < 0.0f || t > 1.0f) {
|
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);
|
assert(t >= 0.0f && t <= 1.0f);
|
||||||
}
|
}
|
||||||
model->updateInterpolationData(t, false);
|
model->updateInterpolationData(t, false);
|
||||||
|
|
|
@ -408,8 +408,8 @@ void TextRenderer3DGl::specialFTGLErrorCheckWorkaround(string text) {
|
||||||
if(error) {
|
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(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) {
|
if(currentFTGLErrorCount > 0) {
|
||||||
printf("\n**FTGL Error = %d for text [%s] currentFTGLErrorCount = %d\n\n",error,text.c_str(),currentFTGLErrorCount);
|
printf("\n**FTGL Error = %d [%s] for text [%s] currentFTGLErrorCount = %d\n\n",error,gluErrorString(error),text.c_str(),currentFTGLErrorCount);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
|
||||||
assertGlWithErrorNumber(error);
|
assertGlWithErrorNumber(error);
|
||||||
|
|
|
@ -506,7 +506,7 @@ void GameParticleSystem::setTween(float relative,float absolute) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(tween < 0.0f || tween > 1.0f) {
|
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);
|
assert(tween >= 0.0f && tween <= 1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user