fixed issues with some opengl implementations

This commit is contained in:
itsmattkc
2019-09-13 00:32:41 +10:00
parent 28687d4852
commit c5572876fa
10 changed files with 102 additions and 48 deletions
+24 -1
View File
@@ -34,7 +34,8 @@
*
* RenderInstance contains everything that Nodes will need to draw with on a per-thread basis.
*
* In OpenGL,
* Due to its usage of QOffscreenSurface, a RenderInstance instance must be constructed in the main (GUI) thread. From
* there it is safe to call Start() on in another thread.
*/
class RenderInstance : public QObject
{
@@ -45,6 +46,28 @@ public:
const olive::PixelFormat& format,
const olive::RenderMode& mode);
virtual ~RenderInstance() override;
/**
* @brief Deleted copy constructor
*/
RenderInstance(const RenderInstance& other) = delete;
/**
* @brief Deleted move constructor
*/
RenderInstance(RenderInstance&& other) = delete;
/**
* @brief Deleted copy assignment
*/
RenderInstance& operator=(const RenderInstance& other) = delete;
/**
* @brief Deleted move assignment
*/
RenderInstance& operator=(RenderInstance&& other) = delete;
void SetShareContext(QOpenGLContext* share);
bool Start();