title: Capture screen of GLSurfaceView to bitmap
body: <p>I need to be able to capture an image of a <code>GLSurfaceView</code> at certain moment in time. I have the following code:</p>
  
  <pre><code>relative.setDrawingCacheEnabled(true);
  screenshot = Bitmap.createBitmap(relative.getDrawingCache());
  relative.setDrawingCacheEnabled(false);
  Log.v(TAG, "Screenshot height: " + screenshot.getHeight());
  image.setImageBitmap(screenshot); 
  </code></pre>
  
  <p>The <code>GLSurfaceView</code> is contained within a <code>RelativeLayout</code>, but I have also tries it straight using the <code>GLSurfaceView</code> to try and capture the image. With this I think the screen captures a transparent image, i.e. nothing there. Any help will be appreciated.</p>