mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-14 03:39:57 +01:00
Implementation of Pixel Buffer Object for Media Player.
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user