瀏覽代碼

gpu: use a valid default framebuffer color format on the PS3.

legacy
Sam Hocevar sam 12 年之前
父節點
當前提交
47d98bde9a
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      src/gpu/framebuffer.cpp

+ 5
- 0
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;


Loading…
取消
儲存