From c929f13701634a145a217ebb1ddec80742234d5d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 19 Jan 2004 17:35:41 +0000 Subject: [PATCH] remove incorrect comments, added _mesa_bzero() call in _mesa_initialize_texture_object() --- src/mesa/main/texobj.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 168fa13b6d7..35323e2b72a 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -5,9 +5,9 @@ /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.1 * - * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -59,12 +59,6 @@ * of GenTextures() * * \return pointer to new texture object. - * - * Allocate and initialize a gl_texture_object structure, and insert in the - * shared state texture list while holding its mutex. - * If name > 0 then also insert the new texture object into the hash - * table. - * */ struct gl_texture_object * _mesa_new_texture_object( GLcontext *ctx, GLuint name, GLenum target ) @@ -95,6 +89,7 @@ _mesa_initialize_texture_object( struct gl_texture_object *obj, /* init the non-zero fields */ _glthread_INIT_MUTEX(obj->Mutex); + _mesa_bzero(obj, sizeof(*obj)); obj->RefCount = 1; obj->Name = name; obj->Target = target; @@ -134,10 +129,6 @@ _mesa_initialize_texture_object( struct gl_texture_object *obj, * * \param shared the shared GL state to which the object belongs. * \param texOjb the texture object to delete. - * - * Unlink the texture object from the shared state texture linked list while - * holding its lock. If the texture is a name number it's also removed from the - * hash table. Finally frees the texture images and the object itself. */ void _mesa_delete_texture_object( GLcontext *ctx, struct gl_texture_object *texObj ) -- 2.30.2