Skip to content
Snippets Groups Projects
Commit aa49386c authored by Graham Linden's avatar Graham Linden
Browse files

Roll back changes to geo drawn in gpu_bench to stop punishing cards with low fill rate

parent a730187a
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment