From 88075b5aba28401d6e7d2b1be93455e26d0efef0 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 2 Feb 2013 15:00:28 +0000 Subject: [PATCH] math: remove coercion rules in the vector classes, they increase the compilation time for very little benefit and maybe even confusion. --- neercs/video/text-render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neercs/video/text-render.cpp b/neercs/video/text-render.cpp index 4a97a6b..5c6c253 100644 --- a/neercs/video/text-render.cpp +++ b/neercs/video/text-render.cpp @@ -186,7 +186,7 @@ void TextRender::Blit(ivec2 pos, ivec2 size) glBindTexture(GL_TEXTURE_2D, (int)x); glColor3f(1.0f, 1.0f, 1.0f); - vec2 tc = (vec2)m_canvas_size * m_font_size / m_fbo_size; + vec2 tc = (vec2)m_canvas_size * (vec2)m_font_size / (vec2)m_fbo_size; glLoadIdentity(); glBegin(GL_QUADS);