mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
work around VC7 bug
This commit is contained in:
parent
20e055d41f
commit
74c527d72b
@ -1313,8 +1313,12 @@ compute_film_mat() {
|
||||
// The lens will return a point in the range [-film_size/2,
|
||||
// film_size/2] in each dimension. Convert this to [-1, 1], and
|
||||
// also apply the offset.
|
||||
const LVecBase2f &film_size = get_film_size();
|
||||
const LVector2f &film_offset = get_film_offset();
|
||||
|
||||
// We declare these two as local variables, instead of references,
|
||||
// to work around a VC7 compiler bug.
|
||||
LVecBase2f film_size = get_film_size();
|
||||
LVector2f film_offset = get_film_offset();
|
||||
|
||||
/* this line triggers a VC7 opt bug, so explicitly set matrix below instead
|
||||
_film_mat =
|
||||
LMatrix4f::translate_mat(-film_offset[0], -film_offset[1], 0.0f) *
|
||||
|
Loading…
x
Reference in New Issue
Block a user