소스 검색

shader: fix shader newline error with Intel drivers

It appears that Intel drivers always need a newline at the end of the file.
rdb 7 년 전
부모
커밋
927fcda817
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      panda/src/gobj/shader.cxx

+ 3 - 0
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;
 }