Forbid passing multiview sampler to the custom function in shaders

This commit is contained in:
Yuri Rubinsky
2023-01-29 12:14:22 +03:00
parent 6cde3fac32
commit 94831c7209
16 changed files with 50 additions and 21 deletions

View File

@@ -198,7 +198,11 @@ void RasterizerGLES3::finalize() {
memdelete(config);
}
RasterizerGLES3 *RasterizerGLES3::singleton = nullptr;
RasterizerGLES3::RasterizerGLES3() {
singleton = this;
#ifdef GLAD_ENABLED
if (!gladLoaderLoadGL()) {
ERR_PRINT("Error initializing GLAD");