title: Loading a PVR, texture problems
body: <p>I'm having a problem with loading a tga from a PVR.</p>
  
  <p>I believe the PVR is loading correctly, but when I try and load the texture into OpenGL I'm getting issues. </p>
  
  <p>I'm getting odd, incoherant drawings. I'll passing the entire texture file I'm making over to my graphics window class and then asking it to get the id which is an unsigned int and then create the texture.</p>
  
  <p>This is my load texture class.</p>
  
  <pre><code>glGenTextures(animalTexture-&gt;getID(), &amp;texture[0]);
  glBindTexture(GL_TEXTURE_2D, texture[0]);
  glTexImage2D(GL_TEXTURE_2D, 0, 3, animalTexture-&gt;getWidth(),animalTexture-&gt;getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, animalTexture-&gt;getImageData());
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
  glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
  </code></pre>
  
  <p>I'm wondering what the cause could be. This method does get called more than once so I'm wondering if you can overwrite a previously generated texture without any issues? Do you have to have a gluint to use to generate a texture? I'm trying to load a tga.</p>
  
  <p>I know this draws successfully with a normal saved image. </p>
  
  <p>Any ideas or help would be mucn appreciated.</p>
  
  <p>p.s Ignore the black spot that was me.</p>
  
  <p><img src="https://i.stack.imgur.com/nkmmZ.png" alt="enter image description here"></p>