~linaro-graphics-wg/compiz-plugins-main/oneiric-gles2

« back to all changes in this revision

Viewing changes to expo/src/expo.cpp

  • Committer: Alexandros Frantzis
  • Date: 2012-01-16 15:35:23 UTC
  • Revision ID: alexandros.frantzis@linaro.org-20120116153523-wqdshc5g3tgv80ge
expo: Correct matrix multiplication order for unprojection calculation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
           const GLint viewport[4],
648
648
           float *objx, float *objy, float *objz)
649
649
{
650
 
    GLMatrix finalMatrix = modelview * projection;
 
650
    GLMatrix finalMatrix = projection * modelview;
651
651
    float in[4], out[4];
652
652
 
653
653
    if (!finalMatrix.invert ())