title: How to use glReadPixels() to return resized image from FBO?
body: <p>Shortly: I need a quick way to resize the buffer image and then return the pixels to me to save them to file etc.</p>
  
  <p>Currently I first use glReadPixels(), and then I go through the pixels myself to resize them with my own resize function.</p>
  
  <p>Is there any way to speed up this resizing, for example make OpenGL do the work for me? I think I could use glGetTexImage() with miplevel and mipmapping enabled, but as I noticed earlier, that function is bugged on my GFX card, so I can't use it.</p>
  
  <p>I only need one miplevel, which could be anything from 1 to 4, but not all of them, to conserve some GPU memory. So is it possible to generate only one miplevel of wanted size?</p>
  
  <p><strong>Note:</strong> i dont think i can use multisampling, because i need pixel precise rendering for stencil tests, so if i rendered it with multisampling, it would make blurry pixels and they would fail with stencil test and masking and result would be incorrect (AFAIK). <strong>Edit:</strong> i only want to scale the colors (RGBA) buffer!</p>