Lines Matching refs:newTexObj
1184 struct gl_texture_object *newTexObj = NULL; in _mesa_BindTexture() local
1204 newTexObj = ctx->Shared->DefaultTex[targetIndex]; in _mesa_BindTexture()
1208 newTexObj = _mesa_lookup_texture(ctx, texName); in _mesa_BindTexture()
1209 if (newTexObj) { in _mesa_BindTexture()
1211 if (newTexObj->Target != 0 && newTexObj->Target != target) { in _mesa_BindTexture()
1217 if (newTexObj->Target == 0) { in _mesa_BindTexture()
1218 finish_texture_init(ctx, target, newTexObj); in _mesa_BindTexture()
1228 newTexObj = ctx->Driver.NewTextureObject(ctx, texName, target); in _mesa_BindTexture()
1229 if (!newTexObj) { in _mesa_BindTexture()
1236 _mesa_HashInsert(ctx->Shared->TexObjects, texName, newTexObj); in _mesa_BindTexture()
1239 newTexObj->Target = target; in _mesa_BindTexture()
1242 assert(valid_texture_object(newTexObj)); in _mesa_BindTexture()
1251 && (newTexObj == texUnit->CurrentTex[targetIndex])); in _mesa_BindTexture()
1265 _mesa_reference_texobj(&texUnit->CurrentTex[targetIndex], newTexObj); in _mesa_BindTexture()
1270 ctx->Driver.BindTexture(ctx, target, newTexObj); in _mesa_BindTexture()