OpenGL: Check the list of supported AA modes instead of hardcoding

This commit is contained in:
Pokechu22
2023-03-19 22:20:34 -07:00
parent c63f0f37cd
commit b246a634d4
7 changed files with 133 additions and 20 deletions

View File

@ -15,9 +15,7 @@
namespace OGL
{
namespace
{
GLenum GetGLInternalFormatForTextureFormat(AbstractTextureFormat format, bool storage)
GLenum OGLTexture::GetGLInternalFormatForTextureFormat(AbstractTextureFormat format, bool storage)
{
switch (format)
{
@ -55,6 +53,8 @@ GLenum GetGLInternalFormatForTextureFormat(AbstractTextureFormat format, bool st
}
}
namespace
{
GLenum GetGLFormatForTextureFormat(AbstractTextureFormat format)
{
switch (format)