mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Avoid crashing when custom GLSL shaders are imported when using the gl_compatibility renderer
This commit is contained in:
parent
228db366bf
commit
ccaebcd5e0
2 changed files with 3 additions and 0 deletions
|
@ -31,6 +31,8 @@
|
|||
#include "rendering_device_binds.h"
|
||||
|
||||
Error RDShaderFile::parse_versions_from_text(const String &p_text, const String p_defines, OpenIncludeFunction p_include_func, void *p_include_func_userdata) {
|
||||
ERR_FAIL_NULL_V(RenderingDevice::get_singleton(), ERR_UNAVAILABLE);
|
||||
|
||||
Vector<String> lines = p_text.split("\n");
|
||||
|
||||
bool reading_versions = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue