summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2014-11-19 11:28:04 -0800
committerGraham Linden <graham@lindenlab.com>2014-11-19 11:28:04 -0800
commitaa49386c44b1379ee095a6e528b1a392a1c0e8da (patch)
tree2ffaff00c02d7d685fd6a1ed01df69a699c0566e /indra/newview
parenta730187a5fb3624bd18327545a9f50f5b26599ba (diff)
Roll back changes to geo drawn in gpu_bench to stop punishing cards with low fill rate
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llglsandbox.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp
index 04429ddd75..cc43f787d8 100755
--- a/indra/newview/llglsandbox.cpp
+++ b/indra/newview/llglsandbox.cpp
@@ -958,7 +958,7 @@ F32 gpu_benchmark()
//make a dummy triangle to draw with
LLPointer<LLVertexBuffer> buff = new LLVertexBuffer(LLVertexBuffer::MAP_VERTEX | LLVertexBuffer::MAP_TEXCOORD0, GL_STATIC_DRAW_ARB);
- buff->allocateBuffer(12, 0, true);
+ buff->allocateBuffer(3, 0, true);
LLStrider<LLVector3> v;
LLStrider<LLVector2> tc;
@@ -968,15 +968,6 @@ F32 gpu_benchmark()
v[0].set(-1,1,0);
v[1].set(-1,-3,0);
v[2].set(3,1,0);
- v[3].set(-1,1,0);
- v[4].set(-1,-3,0);
- v[5].set(3,1,0);
- v[6].set(-1,1,0);
- v[7].set(-1,-3,0);
- v[8].set(3,1,0);
- v[9].set(-1,1,0);
- v[10].set(-1,-3,0);
- v[11].set(3,1,0);
buff->flush();
@@ -996,7 +987,7 @@ F32 gpu_benchmark()
{
dest[i].bindTarget();
gGL.getTexUnit(0)->bindManual(LLTexUnit::TT_TEXTURE, source[i]);
- buff->drawArrays(LLRender::TRIANGLES, 0, 12);
+ buff->drawArrays(LLRender::TRIANGLES, 0, 3);
dest[i].flush();
}