Merge pull request #68358 from Sauermann/fix-pink-512-viewport

Fix SubViewport with default size being pink
This commit is contained in:
Rémi Verschelde 2022-11-11 10:44:24 +01:00
commit bbe8ff24f4
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -4231,6 +4231,8 @@ void SubViewport::_bind_methods() {
BIND_ENUM_CONSTANT(UPDATE_ALWAYS);
}
SubViewport::SubViewport() {}
SubViewport::SubViewport() {
RS::get_singleton()->viewport_set_size(get_viewport_rid(), get_size().width, get_size().height);
}
SubViewport::~SubViewport() {}