Changed vertex shader callback function name from 'transform' to 'position', added more vertex shader defines (some to make it easier to eventually have a GLES2 backend), hopefully updated Visual Studio project with changed filenames

This commit is contained in:
Alexander Szpakowski
2013-01-04 01:20:38 -04:00
parent 6560019829
commit c13b1fb03b
5 changed files with 134 additions and 108 deletions
+3 -3
View File
@@ -127,10 +127,10 @@ GLuint ShaderEffect::createShader(const ShaderSource &source)
{
GLenum err = glGetError();
if (err == GL_INVALID_OPERATION) // should only happen between glBegin() and glEnd()
throw love::Exception("Cannot create %s shader object.", shadertypename);
else if (err == GL_INVALID_ENUM) // invalid or unsupported shader type
if (err == GL_INVALID_ENUM) // invalid or unsupported shader type
throw love::Exception("Cannot create %s shader object: %s shaders not supported.", shadertypename, shadertypename);
else // other errors should only happen between glBegin() and glEnd()
throw love::Exception("Cannot create %s shader object.", shadertypename);
}
const char *src = source.code.c_str();