Implementation of Pixel Buffer Object for Media Player.

This commit is contained in:
brunoherbelin
2020-06-24 00:37:16 +02:00
parent ee35e52b89
commit c7fb663cf5
4 changed files with 127 additions and 10 deletions

View File

@@ -691,6 +691,20 @@ void RenderingWindow::draw(FrameBuffer *fb)
glfwMakeContextCurrent(master_);
}
bool Rendering::supportsPBO()
{
static int support_extension = -1;
if (support_extension < 0) {
if (GLAD_GL_ARB_pixel_buffer_object || GLAD_GL_EXT_pixel_buffer_object)
support_extension = 1;
else
support_extension = 0;
}
return support_extension == 1;
}
//
// Discarded because not working under OSX - kept in case it would become useful
//