store alpha textures always as RGBA

This commit is contained in:
Jupeyy 2017-09-13 18:32:08 +02:00
parent 74cccdeed0
commit a3658e5526

View file

@ -896,6 +896,7 @@ void CCommandProcessorFragment_OpenGL3_3::Cmd_Texture_Create(const CCommandBuffe
//Bind the texture 2D.
GLint swizzleMask[] = {GL_ONE, GL_ONE, GL_ONE, GL_RED};
glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_RGBA, swizzleMask);
StoreOglformat = GL_RGBA;
}
if(pCommand->m_Flags&CCommandBuffer::TEXFLAG_NOMIPMAPS)