diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-02 00:12:21 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-11-10 07:58:40 +0100 |
commit | 5606d14c3e8732bcb6b0ea5513719fa973a435a2 (patch) | |
tree | 45d4361477163d0b95ada79d0290596d83dfe46c /include | |
parent | prevent crash with empty chart scene (diff) | |
download | core-5606d14c3e8732bcb6b0ea5513719fa973a435a2.tar.gz core-5606d14c3e8732bcb6b0ea5513719fa973a435a2.zip |
add possibility to check if system can run OpenGL VCL backend
Change-Id: If3475c6b2c76e4634f16053928b43a94c83be6ee
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/opengl/OpenGLHelper.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx index 8c04e320d4be..be2dfda1559c 100644 --- a/include/vcl/opengl/OpenGLHelper.hxx +++ b/include/vcl/opengl/OpenGLHelper.hxx @@ -46,6 +46,11 @@ public: static float getGLVersion(); static void checkGLError(const char* aFile, size_t nLine); + + /** + * checks if the system supports all features that are necessary for the OpenGL VCL support + */ + static bool supportsVCLOpenGL(); }; #define CHECK_GL_ERROR() OpenGLHelper::checkGLError(__FILE__, __LINE__) |