Initial commit of Video Streamer. bugFix delete Pbos.

This commit is contained in:
brunoherbelin
2020-10-14 22:58:02 +02:00
parent 3a41e59f00
commit 007d876dbc
7 changed files with 119 additions and 12 deletions

View File

@@ -24,8 +24,10 @@ Screenshot::Screenshot()
Screenshot::~Screenshot()
{
glDeleteBuffers(1, &Pbo);
if (Data) free(Data);
if (Pbo > 0)
glDeleteBuffers(1, &Pbo);
if (Data)
free(Data);
}
bool Screenshot::isFull()