diff options
author | Dave Parks <davep@lindenlab.com> | 2011-09-30 00:05:42 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-09-30 00:05:42 -0500 |
commit | 3f96ec1bc9098986f1ed811120ab3793a29ae235 (patch) | |
tree | 37110643e6c5ffdf2e920382252fb2ff1276dd5b /indra/newview/llspatialpartition.cpp | |
parent | ccf751e78ee551648e4ae29f2e7c0e7288cd7168 (diff) |
SH-2244 Fix for performance warning on AMD cards
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
-rw-r--r-- | indra/newview/llspatialpartition.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 61d061520f..8e22a9be2c 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -214,7 +214,7 @@ typedef enum //contact Runitai Linden for a copy of the SL object used to write this table //basically, you give the table a bitmask of the look-at vector to a node and it //gives you a triangle fan index array -static U8 sOcclusionIndices[] = +static U16 sOcclusionIndices[] = { //000 b111, b110, b010, b011, b001, b101, b100, b110, @@ -251,7 +251,7 @@ U8* get_box_fan_indices_ptr(LLCamera* camera, const LLVector4a& center) S32 cypher = center.greaterThan(origin).getGatheredBits() & 0x7; - return sOcclusionIndices+cypher*8; + return (U8*) (sOcclusionIndices+cypher*8); } |