Merge pull request #11699 from Pokechu22/gl-check-maximum-samples

OpenGL: Check the list of supported AA modes instead of hardcoding
This commit is contained in:
Admiral H. Curtiss
2023-06-09 15:07:07 +02:00
committed by GitHub
32 changed files with 237 additions and 158 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)