Changeset 1147


Ignore:
Timestamp:
Feb 25, 2012, 9:20:23 PM (8 years ago)
Author:
sam
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/tutorial/tut03.cpp

    r1145 r1147  
    5757        m_size.x = (m_size.x + 15) & ~15;
    5858        m_size.y = (m_size.y + 15) & ~15;
    59         m_texel_settings = vec4(1.0, 1.0, 2.0, 2.0) / m_size.xyxy;
    60         m_screen_settings = vec4(1.0, 1.0, 0.5, 0.5) * m_size.xyxy;
     59        /* FIXME: casts are necessary because of missing operators */
     60        m_texel_settings = vec4(1.0, 1.0, 2.0, 2.0) / (vec4)m_size.xyxy;
     61        m_screen_settings = vec4(1.0, 1.0, 0.5, 0.5) * (vec4)m_size.xyxy;
    6162
    6263        /* Window size decides the world aspect ratio. For instance, 640×480
Note: See TracChangeset for help on using the changeset viewer.