We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1268448 commit 04ca28eCopy full SHA for 04ca28e
Editor/Utility/TextureUtility.cpp
@@ -34,7 +34,7 @@ namespace Nippon
34
switch (image.GetMetadata().format)
35
{
36
case DXGI_FORMAT_BC1_UNORM: /*texture = Texture2D::Create((U32)mip->width, (U32)mip->height, 1, GL_REPEAT, GL_LINEAR_MIPMAP_LINEAR, GL_RGBA, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_UNSIGNED_BYTE, mip->pixels, true);*/ break; // TODO
37
- case DXGI_FORMAT_BC7_UNORM: texture = Texture2D::Create((U32)mip->width, (U32)mip->height, 4, GL_REPEAT, GL_LINEAR_MIPMAP_LINEAR, GL_RGBA, GL_COMPRESSED_RGBA_BPTC_UNORM_ARB, GL_UNSIGNED_BYTE, mip->pixels, true); break;
+ case DXGI_FORMAT_BC7_UNORM: texture = Texture2D::Create((U32)mip->width, (U32)mip->height, 4, GL_REPEAT, GL_LINEAR_MIPMAP_LINEAR, GL_RGBA, GL_COMPRESSED_RGBA_BPTC_UNORM_ARB, GL_UNSIGNED_BYTE, mip->pixels, true); break;
38
default:
39
40
Log::Add("Unsupported texture format 0x%X found\n", image.GetMetadata().format);
0 commit comments