intel: Set InternalFormat for renderbuffers created from an EGLImage
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 2 Mar 2010 20:41:12 +0000 (15:41 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 3 Mar 2010 15:47:49 +0000 (10:47 -0500)
src/mesa/drivers/dri/intel/intel_fbo.c

index 82c7b19eefe2477037f95d323410b3b4ca60b7e7..b388a3de2ef64711a5c2ace281521388d74ce5e6 100644 (file)
@@ -222,6 +222,7 @@ intel_image_target_renderbuffer_storage(GLcontext *ctx,
       intel_region_release(&irb->region);
    intel_region_reference(&irb->region, image->region);
 
+   rb->InternalFormat = image->internal_format;
    rb->Width = image->region->width;
    rb->Height = image->region->height;
    rb->Format = image->format;