OpenGL3: Sort out texture color format support

This commit is contained in:
numzero
2023-04-20 17:40:51 +03:00
committed by sfan5
parent 49b6ccde72
commit 1387370260
5 changed files with 107 additions and 228 deletions

View File

@ -365,6 +365,15 @@ namespace video
core::matrix4 TextureFlipMatrix;
using FColorConverter = void(*)(const void *source, s32 count, void *dest);
struct STextureFormatInfo {
GLenum InternalFormat;
GLenum PixelFormat;
GLenum PixelType;
FColorConverter Converter;
};
STextureFormatInfo TextureFormats[ECF_UNKNOWN] = {};
private:
COpenGL3Renderer2D* MaterialRenderer2DActive;