From 2e006390f8d407983351615fd901518f7429ea06 Mon Sep 17 00:00:00 2001 From: Jeff Hutchinson Date: Thu, 15 Sep 2022 17:59:00 -0400 Subject: [PATCH] Add GFXFormatA8L8 for OpenGL --- Engine/source/gfx/gl/gfxGLEnumTranslate.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Engine/source/gfx/gl/gfxGLEnumTranslate.cpp b/Engine/source/gfx/gl/gfxGLEnumTranslate.cpp index e2e9cab66..657ee7743 100644 --- a/Engine/source/gfx/gl/gfxGLEnumTranslate.cpp +++ b/Engine/source/gfx/gl/gfxGLEnumTranslate.cpp @@ -118,6 +118,7 @@ void GFXGLEnumTranslate::init() GFXGLTextureInternalFormat[GFXFormatA8] = GL_R8; GFXGLTextureInternalFormat[GFXFormatL8] = GL_R8; + GFXGLTextureInternalFormat[GFXFormatA8L8] = GL_RG8; GFXGLTextureInternalFormat[GFXFormatR5G5B5A1] = GL_RGB5_A1; GFXGLTextureInternalFormat[GFXFormatR5G5B5X1] = GL_RGB5_A1; GFXGLTextureInternalFormat[GFXFormatL16] = GL_R16; @@ -146,6 +147,7 @@ void GFXGLEnumTranslate::init() GFXGLTextureFormat[GFXFormatA8] = GL_RED; GFXGLTextureFormat[GFXFormatL8] = GL_RED; + GFXGLTextureFormat[GFXFormatA8L8] = GL_RG; GFXGLTextureFormat[GFXFormatR5G5B5A1] = GL_RGBA; GFXGLTextureFormat[GFXFormatR5G5B5X1] = GL_RGBA; GFXGLTextureFormat[GFXFormatL16] = GL_RED; @@ -174,6 +176,7 @@ void GFXGLEnumTranslate::init() GFXGLTextureType[GFXFormatA8] = GL_UNSIGNED_BYTE; GFXGLTextureType[GFXFormatL8] = GL_UNSIGNED_BYTE; + GFXGLTextureType[GFXFormatA8L8] = GL_UNSIGNED_BYTE; GFXGLTextureType[GFXFormatR5G5B5A1] = GL_UNSIGNED_SHORT_5_5_5_1; GFXGLTextureType[GFXFormatR5G5B5X1] = GL_UNSIGNED_SHORT_5_5_5_1; GFXGLTextureType[GFXFormatL16] = GL_UNSIGNED_SHORT;