瀏覽代碼

math: remove coercion rules in the vector classes, they increase the

compilation time for very little benefit and maybe even confusion.
master
Sam Hocevar 12 年之前
父節點
當前提交
88075b5aba
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      neercs/video/text-render.cpp

+ 1
- 1
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);


Loading…
取消
儲存