浏览代码

missing texture format.

To silence a console error on startup (OpenGL)
Anis 10 年之前
父节点
当前提交
2db9aa52ef
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Engine/source/gfx/gfxStringEnumTranslate.cpp

+ 1 - 0
Engine/source/gfx/gfxStringEnumTranslate.cpp

@@ -135,6 +135,7 @@ void GFXStringEnumTranslate::init()
    GFX_STRING_ASSIGN_MACRO( GFXStringTextureFormat, GFXFormatR8G8B8 );
    GFX_STRING_ASSIGN_MACRO( GFXStringTextureFormat, GFXFormatR8G8B8A8 );
    GFX_STRING_ASSIGN_MACRO( GFXStringTextureFormat, GFXFormatR8G8B8X8 );
+   GFX_STRING_ASSIGN_MACRO( GFXStringTextureFormat, GFXFormatB8G8R8A8 );
    GFX_STRING_ASSIGN_MACRO( GFXStringTextureFormat, GFXFormatR32F );
    GFX_STRING_ASSIGN_MACRO( GFXStringTextureFormat, GFXFormatR5G6B5 );
    GFX_STRING_ASSIGN_MACRO( GFXStringTextureFormat, GFXFormatR5G5B5A1 );