From dc63a4c9a742005a90ac82cc2e979a94f48ef48e Mon Sep 17 00:00:00 2001 From: Tom Robinson Date: Thu, 28 Jul 2016 14:18:36 +0100 Subject: [PATCH] FrameBuffer::Format changed to bit-mask Attachment: Demo Change-Id: Ia6f1c7db32069f80bcaecd562dd487f65702ae22 --- examples/native-image-source/native-image-source-example.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/native-image-source/native-image-source-example.cpp b/examples/native-image-source/native-image-source-example.cpp index 94243c9..fe676dc 100644 --- a/examples/native-image-source/native-image-source-example.cpp +++ b/examples/native-image-source/native-image-source-example.cpp @@ -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); -- 2.7.4