From 927fcda8176fa5a21a79b410b26051a1ac56f46f Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 22 Jun 2018 20:53:56 +0200 Subject: [PATCH] shader: fix shader newline error with Intel drivers It appears that Intel drivers always need a newline at the end of the file. --- panda/src/gobj/shader.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/gobj/shader.cxx b/panda/src/gobj/shader.cxx index 5914fd3598..31a8d986ed 100644 --- a/panda/src/gobj/shader.cxx +++ b/panda/src/gobj/shader.cxx @@ -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; }