diff mbox

[Branch,~glmark2-dev/glmark2/trunk] Rev 76: Get the link status from the program object not the fragment shader object.

Message ID 20110721123635.17019.82364.launchpad@loganberry.canonical.com
State Accepted
Headers show

Commit Message

alexandros.frantzis@linaro.org July 21, 2011, 12:36 p.m. UTC
------------------------------------------------------------
revno: 76
committer: Alexandros Frantzis <alexandros.frantzis@linaro.org>
timestamp: Sat 2011-02-26 21:57:48 +0200
message:
  Get the link status from the program object not the fragment shader object.
modified:
  src/shader.cpp


--
lp:glmark2
https://code.launchpad.net/~glmark2-dev/glmark2/trunk

You are subscribed to branch lp:glmark2.
To unsubscribe from this branch go to https://code.launchpad.net/~glmark2-dev/glmark2/trunk/+edit-subscription
diff mbox

Patch

=== 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",