Message ID | 20110721123635.17019.82364.launchpad@loganberry.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'src/shader.cpp' --- src/shader.cpp 2011-01-25 15:00:12 +0000 +++ src/shader.cpp 2011-02-26 19:57:48 +0000 @@ -99,7 +99,7 @@ glBindAttribLocation(mShaderProgram, TexCoordAttribLocation, "texcoord"); glLinkProgram(mShaderProgram); - glGetProgramiv(mFragmentShader, GL_LINK_STATUS, &status); + glGetProgramiv(mShaderProgram, GL_LINK_STATUS, &status); if (status == GL_FALSE) { glGetProgramInfoLog(mShaderProgram, sizeof msg, NULL, msg); fprintf(stderr, "Error linking shader program: %s",