FrameBuffer::Format changed to bit-mask Attachment: Demo 28/81828/2
authorTom Robinson <tom.robinson@samsung.com>
Thu, 28 Jul 2016 13:18:36 +0000 (14:18 +0100)
committerTom Robinson <tom.robinson@samsung.com>
Thu, 28 Jul 2016 14:50:16 +0000 (07:50 -0700)
Change-Id: Ia6f1c7db32069f80bcaecd562dd487f65702ae22

examples/native-image-source/native-image-source-example.cpp

index 94243c93e7a16799038c2e48d1a0a5f5e5a7503f..fe676dcabec86e89b91c61c41a6333ccec5c5966 100644 (file)
@@ -200,7 +200,9 @@ public:
 
     // create a offscreen renderer task to render content into the native image source
     Texture nativeTexture = Texture::New( *nativeImageSourcePtr );
-    FrameBuffer targetBuffer = FrameBuffer::New( nativeTexture.GetWidth(), nativeTexture.GetHeight(), FrameBuffer::COLOR );
+    // Create a FrameBuffer object with no default attachments.
+    FrameBuffer targetBuffer = FrameBuffer::New( nativeTexture.GetWidth(), nativeTexture.GetHeight(), FrameBuffer::Attachment::NONE );
+    // Add a color attachment to the FrameBuffer object.
     targetBuffer.AttachColorTexture( nativeTexture );
 
     CameraActor cameraActor = CameraActor::New(imageSize);