mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
shader: fix shader newline error with Intel drivers
It appears that Intel drivers always need a newline at the end of the file.
This commit is contained in:
parent
582cc2991e
commit
927fcda817
@ -2497,6 +2497,9 @@ do_read_source(string &into, const Filename &fn, BamCacheRecord *record) {
|
||||
into.resize(into.size() - 1);
|
||||
}
|
||||
|
||||
// Except add back a newline at the end, which is needed by Intel drivers.
|
||||
into += "\n";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user