title: Is it possible to render in RGB888 with OpenGL?
body: <p>I have played for a while with OpenGL on Android on various devices. And unless I'm wrong, the default rendering is always performed with the RGB565 pixel format.</p>
  
  <p>I would however like to render more accurate colors using RGB888.</p>
  
  <p>The <a href="http://developer.android.com/reference/android/opengl/GLSurfaceView.html" rel="nofollow">GLSurfaceView</a> documentation mentions two methods which relate to pixel formats: </p>
  
  <ul>
  <li>the <a href="http://developer.android.com/reference/android/view/SurfaceHolder.html#setFormat%28int%29" rel="nofollow">setFormat()</a> method exposed by <a href="http://developer.android.com/reference/android/view/SurfaceHolder.html" rel="nofollow">SurfaceHolder</a>, as returned by <a href="http://developer.android.com/reference/android/view/SurfaceView.html#getHolder%28%29" rel="nofollow">SurfaceView.getHolder()</a></li>
  <li>the <a href="http://developer.android.com/reference/android/opengl/GLSurfaceView.html#setEGLConfigChooser%28android.opengl.GLSurfaceView.EGLConfigChooser%29" rel="nofollow">GLSurfaceView.setEGLConfigChooser()</a> family of methods</li>
  </ul>
  
  <p>Unless I'm wrong, I think I only need to use the later. Or is using <code>SurfaceHolder.setFormat()</code> relevant here?</p>
  
  <p>The documentation of the <a href="http://developer.android.com/reference/android/opengl/GLSurfaceView.EGLConfigChooser.html" rel="nofollow">EGLConfigChooser</a> class mentions <a href="http://developer.android.com/reference/javax/microedition/khronos/egl/EGL10.html#eglChooseConfig%28javax.microedition.khronos.egl.EGLDisplay,%20int%5B%5D,%20javax.microedition.khronos.egl.EGLConfig%5B%5D,%20int,%20int%5B%5D%29" rel="nofollow">EGL10.eglChooseConfig()</a>, to discover which configurations are available.</p>
  
  <p>In my case it is ok to fallback to RGB565 if RGB888 isn't available, but I would prefer this to be quite rare.</p>
  
  <p>So, is it possible to use RGB888 on most devices?</p>
  
  <p>Are there any compatibility problems or weird bugs with this? </p>
  
  <p>Do you have an example of a correct and reliable way to setup the GLSurfaceView for rendering RGB888?</p>