Fix GL version check for arbitrary texture-to-buffer copy support.

love never creates a GL4.5 context, so we also need to check for the extension that provides the same functionality.
This commit is contained in:
Alex Szpakowski
2021-12-30 19:25:10 -04:00
parent 4474312f76
commit 813c9d1781
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1541,7 +1541,7 @@ bool OpenGL::isCopyBufferToTextureSupported() const
bool OpenGL::isCopyTextureToBufferSupported() const
{
// Requires glGetTextureSubImage support.
return GLAD_VERSION_4_5;
return GLAD_VERSION_4_5 || GLAD_ARB_get_texture_sub_image;
}
bool OpenGL::isCopyRenderTargetToBufferSupported() const