summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-26 13:23:25 -0700
committerBrian Paul <[email protected]>2010-01-26 13:25:53 -0700
commit43867acb6afc7fad26cdc2f22b2a3bb6eeefb2da (patch)
tree4fdb4589a9820b78e79c5192778ed81f9e04855c /src/mesa/main/state.c
parent06d228d8b92b7f4031f0596d498c24c4ed952e68 (diff)
parent68ca19afd7299fa9c686f95d53b7e14df37aba4c (diff)
Merge branch 'mesa_7_7_branch'
Merging was easier than cherry picking in this instance.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 904ad012052..5e07d1d2f15 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -82,12 +82,6 @@ compute_max_element(struct gl_client_array *array)
} else {
array->_MaxElement = 0;
}
- /* Compute the max element we can access in the VBO without going
- * out of bounds.
- */
- array->_MaxElement = ((GLsizeiptrARB) array->BufferObj->Size
- - (GLsizeiptrARB) array->Ptr + array->StrideB
- - array->_ElementSize) / array->StrideB;
}
else {
/* user-space array, no idea how big it is */