title: glError 1282 in the Nexus S but not in the Nexus One
body: <p>I am creating a live wallpaper using openGL ES 2.0.
  The app works great in my nexus one but it doesn't not show anything in a Nexus S.</p>
  
  <p>Things I have tested so far:</p>
  
  <ul>
  <li><p>I have already checked <a href="https://stackoverflow.com/questions/4781369/opengl-es-problem-on-nexus-s">this question</a>. My texture is 128x128 so I guess this isn't the issue.</p></li>
  <li><p>I have used the <code>checkGlError</code> method in my code and I found that it passes the <code>onSurfaceCreated</code> and <code>onSurfaceChanged</code> without issues. The method throws an exception if I call it in the first line of the <code>onDrawFrame()</code> method.</p></li>
  </ul>
  
  <p>The <code>checkGlError</code> code is the following:</p>
  
  <pre><code>private void checkGlError(String op) {
      int error;
      while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) {
          Log.e(TAG, op + ": glError " + error);
          throw new RuntimeException(op + ": glError " + error);
      }
  }
  </code></pre>
  
  <p>I notice that the error occurs in both devices, but it looks critical in the nexus S while it draws fine in the nexus one. My guess is that the shader is not compiled correctly and there is an issue there.</p>
  
  <p>Do you know other incompatibilities between the nexus S and the nexus one?
  Is there a way of debugging shader's code?</p>