Fix for Issue #441: gl-disabled-vertex-attrib.html too strict

Move the test from the fragment shader to the vertex shader to avoid relying on the accuracy of the perspective correction implementation.