Internally compose and pass an array of shader source codes to OpenGL, instead of relying on #line to make sure the line number is correct for shader error messages (resolves issue #882)

This commit is contained in:
Alex Szpakowski
2014-05-03 21:43:20 -03:00
parent 9972153696
commit 4bc96f1bf6
7 changed files with 158 additions and 78 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ public:
Canvas *newCanvas(int width, int height, Texture::Format format = Texture::FORMAT_NORMAL, int fsaa = 0);
Shader *newShader(const Shader::ShaderSources &sources);
Shader *newShader(const std::vector<std::string> &vertcode, const std::vector<std::string> &pixelcode);
Mesh *newMesh(const std::vector<Vertex> &vertices, Mesh::DrawMode mode = Mesh::DRAW_MODE_FAN);
Mesh *newMesh(int vertexcount, Mesh::DrawMode mode = Mesh::DRAW_MODE_FAN);