OpenGL dataformat cleanup - pass Draw::DataFormat to the GLRenderManager.

Avoids triple GLenum all over the place, and also clearly shows that the
mapping is wrong.
This commit is contained in:
Henrik Rydgård
2019-10-24 22:41:41 +02:00
parent aa04c57633
commit 8c2e318416
12 changed files with 89 additions and 88 deletions
+7
View File
@@ -57,6 +57,13 @@ bool Thin3DFormatToFormatAndType(DataFormat fmt, GLuint &internalFormat, GLuint
alignment = 2;
break;
case DataFormat::R32G32B32A32_FLOAT:
internalFormat = GL_RGBA32F;
format = GL_RGBA;
type = GL_FLOAT;
alignment = 16;
break;
#ifndef USING_GLES2
case DataFormat::A4R4G4B4_UNORM_PACK16:
internalFormat = GL_RGBA;