Ignore:
Timestamp:
Feb 17, 2011, 1:53:35 AM (9 years ago)
Author:
sam
Message:

Fix a nasty bug in the float4x4::frustum() computation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matrix.cpp

    r652 r655  
    6666                                      float top, float near, float far)
    6767{
    68     float invrl = (right != left) ? 1.0f / right - left : 0.0f;
    69     float invtb = (top != bottom) ? 1.0f / top - bottom : 0.0f;
    70     float invfn = (far != near) ? 1.0f / far - near : 0.0f;
     68    float invrl = (right != left) ? 1.0f / (right - left) : 0.0f;
     69    float invtb = (top != bottom) ? 1.0f / (top - bottom) : 0.0f;
     70    float invfn = (far != near) ? 1.0f / (far - near) : 0.0f;
    7171
    7272    float4x4 ret(0.0f);
Note: See TracChangeset for help on using the changeset viewer.