From 47d98bde9a3514b4ae2dcf34cbf1e17483569510 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 27 Aug 2012 12:16:52 +0000 Subject: [PATCH] gpu: use a valid default framebuffer color format on the PS3. --- src/gpu/framebuffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gpu/framebuffer.cpp b/src/gpu/framebuffer.cpp index 5a77a3e2..f3eb38a7 100644 --- a/src/gpu/framebuffer.cpp +++ b/src/gpu/framebuffer.cpp @@ -86,6 +86,11 @@ FrameBuffer::FrameBuffer(ivec2 size) GLenum internal_format = GL_RGBA8; GLenum format = GL_BGRA; GLenum depth = GL_DEPTH_COMPONENT; +# elif defined __CELLOS_LV2__ + /* Supported drawable formats on the PS3: GL_ARGB_SCE, GL_RGB16F_ARB, + * GL_RGBA16F_ARB, GL_RGB32F_ARB, GL_RGBA32F_ARB, GL_LUMINANCE32F_ARB. */ + GLenum internal_format = GL_ARGB_SCE; + GLenum format = GL_RGBA; # else GLenum internal_format = GL_RGBA; GLenum format = GL_RGBA;