소스 검색

Merge pull request #521 from Azaezel/alpha40/uniformReportRetort

give useful data when not finding a given shader var
Brian Roberts 4 년 전
부모
커밋
d843a3247a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Engine/source/gfx/gl/gfxGLShader.cpp

+ 1 - 1
Engine/source/gfx/gl/gfxGLShader.cpp

@@ -661,7 +661,7 @@ void GFXGLShader::initHandles()
       // Index element 1 of the name to skip the '$' we inserted earier.
       GLint loc = glGetUniformLocation(mProgram, &desc.name.c_str()[1]);
 
-      AssertFatal(loc != -1, "");
+      AssertFatal(loc != -1, avar("uniform %s in shader file Vert: (%s) Frag: (%s)", &desc.name.c_str()[1], mVertexFile.getFullPath().c_str(), mPixelFile.getFullPath().c_str()));
 
       HandleMap::Iterator handle = mHandles.find(desc.name);
       S32 sampler = -1;