~ubuntu-branches/ubuntu/quantal/mesa/quantal

« back to all changes in this revision

Viewing changes to src/mesa/main/teximage.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-02-21 12:44:07 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20070221124407-rgcacs32mycrtadl
ImportĀ upstreamĀ versionĀ 6.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
 
86
86
extern struct gl_texture_image *
87
 
_mesa_select_tex_image(GLcontext *ctx, const struct gl_texture_unit *texUnit,
 
87
_mesa_select_tex_image(GLcontext *ctx, const struct gl_texture_object *texObj,
88
88
                       GLenum target, GLint level);
89
89
 
90
90
 
91
91
extern struct gl_texture_image *
92
 
_mesa_get_tex_image(GLcontext *ctx, const struct gl_texture_unit *texUnit,
 
92
_mesa_get_tex_image(GLcontext *ctx, struct gl_texture_object *texObj,
93
93
                    GLenum target, GLint level);
94
94
 
95
95
 
106
106
                         GLint internalFormat, GLenum format, GLenum type,
107
107
                         GLint width, GLint height, GLint depth, GLint border);
108
108
 
 
109
 
 
110
/* Lock a texture for updating.  See also _mesa_lock_context_textures().
 
111
 */
 
112
static INLINE void _mesa_lock_texture(GLcontext *ctx,
 
113
                                      struct gl_texture_object *texObj)
 
114
{
 
115
   _glthread_LOCK_MUTEX(ctx->Shared->TexMutex);
 
116
   ctx->Shared->TextureStateStamp++;
 
117
   (void) texObj;
 
118
}
 
119
 
 
120
static INLINE void _mesa_unlock_texture(GLcontext *ctx,
 
121
                                        struct gl_texture_object *texObj)
 
122
{
 
123
   _glthread_UNLOCK_MUTEX(ctx->Shared->TexMutex);
 
124
}
 
125
 
109
126
/*@}*/
110
127
 
111
128