qt: More error handling and tweaking to opengl 3 renderer
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#endif
|
||||
|
||||
#include <atomic>
|
||||
#include <stdexcept>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
@@ -90,8 +91,8 @@ private:
|
||||
void *unpackBuffer = nullptr;
|
||||
|
||||
void initialize();
|
||||
void setupExtensions();
|
||||
void setupBuffers();
|
||||
void initializeExtensions();
|
||||
void initializeBuffers();
|
||||
void applyOptions();
|
||||
void applyShader(const OpenGLShaderPass &shader);
|
||||
bool notReady() const { return !isInitialized || isFinalized; }
|
||||
@@ -107,4 +108,12 @@ private slots:
|
||||
void updateOptions(OpenGLOptions *newOptions);
|
||||
};
|
||||
|
||||
class opengl_init_error : public std::runtime_error {
|
||||
public:
|
||||
opengl_init_error(const QString &what)
|
||||
: std::runtime_error(what.toStdString())
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user