title: Textures not drawing if multiple EAGLViews are used
body: <p>I'm having a bit of a problem with Apples EAGLView and Texture2D. If I create an instance of EAGLView and draw some textures, it works great. However, whenever I create a second instance of EAGLView, the textures in the new view(s) aren't drawn.<br>
  Being new to OpenGL, I've got absolutely now clue as to what is causing this behavior. If somebody would like to help, I've created a small project that reproduces the behavior. The project can be found at <a href="http://www.cocoabeans.se/OpenGLESBug.zip" rel="nofollow noreferrer">http://www.cocoabeans.se/OpenGLESBug.zip</a></p>
  
  <p>Many thanks,<br>
  Tim Andersson</p>
  
  <p><strong>Update</strong><br>
  I tried using sharegroups but I'm not really sure if I used them correctly. However, it did change the behavior slightly; instead of the texture drawing only in the first instantiated view, it now draws the texture in the <em>last</em> instantiated view and draws white rectangles in the other views. I don't know if that is better or worse, but at least <em>something</em> is showing up in the other views now.<br>
  This is driving me crazy and I would be very grateful if somebody could help me with this problem. I've updated the project at <a href="http://www.cocoabeans.se/OpenGLESBug.zip" rel="nofollow noreferrer">http://www.cocoabeans.se/OpenGLESBug.zip</a> to reflect the changes.</p>
  
  <p>Cheers,<br>
  Tim</p>
  
  <p><strong>Second Update</strong><br>
  After trying some more things, it seems that the problem is related to Apple's Texture2D class, though I'm not sure exactly what is causing the behavior. I think the best thing to do is to write my own texture class (it will help me understand how OpenGL handles textures, which will probably come in handy).</p>