title: GLKTextureLoader textureWithContentsOfFile: fails for the first time
body: <p>I am using <code>GLKTextureLoader</code> to load image textures into a sprite.</p>
  
  <p>When I run the following code and load two sprites...</p>
  
  <pre><code>NSString *pathToImage = [NSString stringWithFormat:@"%@/defaultProject/images/%@", [Util applicationDocumentsDirectory], fileName];
  NSLog(@"path: %@", pathToImage);
  self.textureInfo = [GLKTextureLoader textureWithContentsOfFile:pathToImage options:options error:&amp;error];
  if (self.textureInfo == nil) 
  {
      NSLog(@"Error loading file: %@", [error localizedDescription]);
      return;
  }
  </code></pre>
  
  <p>... it fails for the first image but not for the second.</p>
  
  <p>The error is: </p>
  
  <pre><code>Error loading file: The operation couldn’t be completed. (GLKTextureLoaderErrorDomain error 12.).
  </code></pre>
  
  <p>Does anyone know what this error means? I haven't found any information on code 12.</p>
  
  <p>Thanks in advance!</p>