Skip to content

Commit 04ca28e

Browse files
authored
Update TextureUtility.cpp
1 parent 1268448 commit 04ca28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Editor/Utility/TextureUtility.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace Nippon
3434
switch (image.GetMetadata().format)
3535
{
3636
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;
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;
3838
default:
3939
{
4040
Log::Add("Unsupported texture format 0x%X found\n", image.GetMetadata().format);

0 commit comments

Comments
 (0)