mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-08 23:34:32 +00:00
OpenGLDevice: Fix creation on MacOS
Only for debugging, CI builds have GL disabled.
This commit is contained in:
@@ -284,7 +284,7 @@ bool OpenGLDevice::CreateDeviceAndMainSwapChain(std::string_view adapter, Create
|
||||
}
|
||||
|
||||
// Context version restrictions are mostly fine here, but we still need to check for UBO for GL3.0.
|
||||
if (!m_gl_context->IsGLES() && !GLAD_GL_ARB_uniform_buffer_object)
|
||||
if (!m_gl_context->IsGLES() && !GLAD_GL_VERSION_3_1 && !GLAD_GL_ARB_uniform_buffer_object)
|
||||
{
|
||||
Error::SetStringView(error, "OpenGL 3.1 or GL_ARB_uniform_buffer_object is required.");
|
||||
m_gl_context.reset();
|
||||
|
||||
@@ -130,7 +130,8 @@ OpenGLTexture::~OpenGLTexture()
|
||||
|
||||
bool OpenGLTexture::UseTextureStorage(bool multisampled)
|
||||
{
|
||||
return GLAD_GL_ARB_texture_storage || (multisampled ? GLAD_GL_ES_VERSION_3_1 : GLAD_GL_ES_VERSION_3_0);
|
||||
return (GLAD_GL_VERSION_4_2 || GLAD_GL_ARB_texture_storage) ||
|
||||
(multisampled ? GLAD_GL_ES_VERSION_3_1 : GLAD_GL_ES_VERSION_3_0);
|
||||
}
|
||||
|
||||
bool OpenGLTexture::UseTextureStorage() const
|
||||
|
||||
Reference in New Issue
Block a user