summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_rebase.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/tnl/t_rebase.c')
-rw-r--r--src/mesa/tnl/t_rebase.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_rebase.c b/src/mesa/tnl/t_rebase.c
index 07e603b0107..e6e5c9f3dfa 100644
--- a/src/mesa/tnl/t_rebase.c
+++ b/src/mesa/tnl/t_rebase.c
@@ -151,7 +151,7 @@ void t_rebase_prims( struct gl_context *ctx,
} else if (ib) {
/* Unfortunately need to adjust each index individually.
*/
- GLboolean map_ib = ib->obj->Name &&
+ GLboolean map_ib = ib->obj &&
!ib->obj->Mappings[MAP_INTERNAL].Pointer;
void *ptr;
@@ -184,7 +184,7 @@ void t_rebase_prims( struct gl_context *ctx,
return;
}
- tmp_ib.obj = ctx->Shared->NullBufferObj;
+ tmp_ib.obj = NULL;
tmp_ib.ptr = tmp_indices;
tmp_ib.count = ib->count;
tmp_ib.index_size_shift = ib->index_size_shift;