Lines Matching refs:texObj
126 struct gl_texture_object *texObj, in setup_texstorage() argument
131 const GLenum target = texObj->Target; in setup_texstorage()
142 texFormat = _mesa_choose_texture_format(ctx, texObj, target, 0, in setup_texstorage()
152 _mesa_get_tex_image(ctx, texObj, faceTarget, level); in setup_texstorage()
171 if (!_mesa_is_proxy_texture(texObj->Target)) { in setup_texstorage()
173 if (!ctx->Driver.AllocTextureStorage(ctx, texObj, levels, in setup_texstorage()
182 struct gl_texture_image *texImage = texObj->Image[face][level]; in setup_texstorage()
197 texObj->Immutable = GL_TRUE; in setup_texstorage()
208 struct gl_texture_object *texObj) in clear_image_fields() argument
210 const GLenum target = texObj->Target; in clear_image_fields()
215 for (level = 0; level < Elements(texObj->Image[0]); level++) { in clear_image_fields()
221 _mesa_get_tex_image(ctx, texObj, faceTarget, level); in clear_image_fields()
246 struct gl_texture_object *texObj; in tex_storage_error_check() local
334 texObj = _mesa_get_current_tex_object(ctx, target); in tex_storage_error_check()
335 if (!texObj || (texObj->Name == 0)) { in tex_storage_error_check()
342 if (texObj->Immutable) { in tex_storage_error_check()
359 struct gl_texture_object *texObj; in texstorage() local
365 texObj = _mesa_get_current_tex_object(ctx, target); in texstorage()
377 if (_mesa_is_proxy_texture(texObj->Target)) { in texstorage()
379 clear_image_fields(ctx, dims, texObj); in texstorage()
389 setup_texstorage(ctx, texObj, dims, levels, internalformat, in texstorage()