### Godot version

4.0.beta15

### System information

windows 10, nvidia graphics, opengl backend

### Issue description

When using a TileSetAtlasSource on a TileSet with dimensions greater than 799x799 and selecting the Tiles tab in the TileSet editor, all tabs in the right editor panel disappear.

This is likely a regression of https://github.com/godotengine/godot/issues/67942

### Steps to reproduce

see attached video:

https://user-images.githubusercontent.com/5783414/215139823-f78e94c5-5199-452e-b601-76ec0f680748.mp4


### Minimal reproduction project

[LikelyRegressionOf67942.zip](https://github.com/godotengine/godot/files/10520933/LikelyRegressionOf67942.zip)

GLES3::MaterialStorage *material_storage = GLES3::MaterialStorage::get_singleton();
	canvas_begin(p_to_render_target, p_to_backbuffer);
	if (p_item_count <= 0) {
		
		return;
	}
	uint32_t index = 0;
	Item *current_clip = nullptr;
	
	
	bool batch_broken = false;
	_new_batch(batch_broken, index);
	
	state.canvas_instance_batches[state.current_batch_index].start = r_last_index;
	index = 0;
	for (int i = 0; i < p_item_count; i++) {
		Item *ci = items[i];
		if (ci->final_clip_owner != state.canvas_instance_batches[state.current_batch_index].clip) {
			_new_batch(batch_broken, index);
			state.canvas_instance_batches[state.current_batch_index].clip = ci->final_clip_owner;
			current_clip = ci->final_clip_owner;
		}
		RID material = ci->material_owner == nullptr ? ci->material : ci->material_owner->material;
		if (ci->canvas_group != nullptr) {
			if (ci->canvas_group->mode == RS::CANVAS_GROUP_MODE_CLIP_AND_DRAW) {
				if (!p_to_backbuffer) {
					material = default_clip_children_material;
				}