浏览代码

gpu: fix compilation on GL ES platforms.

legacy
Sam Hocevar sam 12 年前
父节点
当前提交
29d5bb3b96
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/gpu/texture.cpp

+ 3
- 3
src/gpu/texture.cpp 查看文件

@@ -134,11 +134,11 @@ Texture::Texture(ivec2 size, PixelFormat format)
{ GL_ARGB_SCE, GL_BGRA, GL_UNSIGNED_INT_8_8_8_8, 4 },
{ GL_LUMINANCE8, GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 },
#elif defined __native_client__ || defined HAVE_GLES_2X
{ GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
{ GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
/* FIXME: if GL_RGBA is not available, we should advertise
* this format as "not available" on this platform. */
{ GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
{ GL_R8, GL_R8, GL_UNSIGNED_BYTE, 1 },
{ GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 4 },
{ GL_LUMINANCE, GL_LUMINANCE, GL_UNSIGNED_BYTE, 1 },
#else
/* Seems efficient for little endian textures */
{ GL_RGBA8, GL_RGBA, GL_UNSIGNED_INT_8_8_8_8_REV, 4 }, /* ARGB_8 */


正在加载...
取消
保存