Преглед изворни кода

test: that cast was necessary, after all...

legacy
Sam Hocevar sam пре 12 година
родитељ
комит
64f6c5818b
1 измењених фајлова са 3 додато и 2 уклоњено
  1. +3
    -2
      test/tutorial/tut03.cpp

+ 3
- 2
test/tutorial/tut03.cpp Прегледај датотеку

@@ -56,8 +56,9 @@ public:
m_size = size;
m_size.x = (m_size.x + 15) & ~15;
m_size.y = (m_size.y + 15) & ~15;
m_texel_settings = vec4(1.0, 1.0, 2.0, 2.0) / m_size.xyxy;
m_screen_settings = vec4(1.0, 1.0, 0.5, 0.5) * m_size.xyxy;
/* FIXME: casts are necessary because of missing operators */
m_texel_settings = vec4(1.0, 1.0, 2.0, 2.0) / (vec4)m_size.xyxy;
m_screen_settings = vec4(1.0, 1.0, 0.5, 0.5) * (vec4)m_size.xyxy;

/* Window size decides the world aspect ratio. For instance, 640×480
* will be mapped to (-0.66,-0.5) - (0.66,0.5). */


Loading…
Откажи
Сачувај