From 8a033fa13514e3b78612ba1678182c9ea8290cd4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 18 Aug 2003 19:45:42 +0000 Subject: [PATCH] minor code improvement in glGenTextures --- src/mesa/main/texobj.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 509523a130c..ff0a0535f11 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -46,8 +46,8 @@ /*@{*/ /** - * Allocate and initialize a new texture object and add it to the linked list of - * texture objects. + * Allocate and initialize a new texture object. But don't put it into the + * texture object hash table. * * Called via ctx->Driver.NewTextureObject, unless overridden by a device * driver. @@ -616,11 +616,6 @@ _mesa_GenTextures( GLsizei n, GLuint *texName ) first = _mesa_HashFindFreeKeyBlock(ctx->Shared->TexObjects, n); - /* Return the texture names */ - for (i=0;i