diff --git a/source/shared_lib/sources/graphics/gl/particle_renderer_gl.cpp b/source/shared_lib/sources/graphics/gl/particle_renderer_gl.cpp index 4af334034..42860a9d0 100644 --- a/source/shared_lib/sources/graphics/gl/particle_renderer_gl.cpp +++ b/source/shared_lib/sources/graphics/gl/particle_renderer_gl.cpp @@ -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); diff --git a/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp b/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp index 0e4421cce..56e205c37 100644 --- a/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp +++ b/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp @@ -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); diff --git a/source/shared_lib/sources/graphics/particle.cpp b/source/shared_lib/sources/graphics/particle.cpp index 8620fb628..b48adfb5a 100644 --- a/source/shared_lib/sources/graphics/particle.cpp +++ b/source/shared_lib/sources/graphics/particle.cpp @@ -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); }