1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Ability to create local RenderingDevice instances.

This commit is contained in:
Juan Linietsky
2020-04-18 20:30:57 -03:00
parent 9690a60c21
commit 49d0c6a5c9
7 changed files with 270 additions and 79 deletions

View File

@@ -60,5 +60,7 @@ Vector<uint8_t> RenderingDevice::shader_compile_from_source(ShaderStage p_stage,
}
RenderingDevice::RenderingDevice() {
singleton = this;
if (singleton == nullptr) { // there may be more rendering devices later
singleton = this;
}
}