瀏覽代碼

Improve error message slightly

Alex Szpakowski 4 年之前
父節點
當前提交
0ec7ea73de
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modules/graphics/Shader.cpp

+ 1 - 1
src/modules/graphics/Shader.cpp

@@ -493,7 +493,7 @@ std::string Shader::createShaderStageCode(Graphics *gfx, ShaderStage::StageType
 		throw love::Exception("Cannot find entry point for shader stage.");
 
 	if (info.stages[stage] == ENTRYPOINT_RAW && info.language == LANGUAGE_GLSL1)
-		throw love::Exception("Shaders using a raw entry point must use GLSL 3 or greater.");
+		throw love::Exception("Shaders using a raw entry point (vertexmain or pixelmain) must use GLSL 3 or greater.");
 
 	const auto &features = gfx->getCapabilities().features;