一, 改为Pixel的RGB通道顺序 if (format == TextureFormat::BGR8 || format == TextureFormat::BGR8_SNORM || format == TextureFormat::BGR8I || format == TextureFormat::SBGR8 || format == TextureFormat::BGR8UI || format == TextureFormat::BGRA8 || format == TextureFormat::BGRA8_SNORM || format == TextureFormat::SBGR8_A8) { //? do texture swizzle r,g,b channel (glTexParameteri(t->gl.id, GL_TEXTURE_SWIZZLE_R, GL_BLUE)); (glTexParameteri(t->gl.id, GL_TEXTURE_SWIZZLE_G, GL_GREEN)); (glTexParameteri(t->gl.id, GL_TEXTURE_SWIZZLE_B, GL_RED)); (glTexParameteri(t->gl.id, GL_TEXTURE_SWIZZLE_A, GL_ALPHA)); }