mirror of
https://github.com/glest/glest-source.git
synced 2025-02-26 20:52:32 +01:00
- 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();
|
||||
|
||||
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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user