Commit graph

14 commits

Author SHA1 Message Date
John Preston
c80df2cdd2 Ensure correct FBO size in QOpenGLWidget. 2023-03-13 15:56:17 +04:00
Ilya Fedin
f3744c4ba3 Use paintGL instead of paintEvent
Hopefully making GL code less crashy by using the respective initialization code
2023-03-09 11:07:18 +04:00
Ilya Fedin
8e5d35229a Simple replacements for Qt 6
QStringRef -> QStringView
QTextCursor constructor accepts a QTextDocument only
Some headers are moved, so paths are removed
QMatrix -> QTransform
Methods returning qsizetype are wrapped to int()s to allow compiler to deduce the type
2021-10-19 17:06:25 +04:00
John Preston
29cfdad44c Fix one more crash on context loss. 2021-09-23 17:37:03 +04:00
John Preston
29f339e26e Allow Ui::GL::Renderer::deinit on lost context. 2021-09-03 21:41:12 +03:00
John Preston
34a867b2a0 Fix move between Retina / Non-Retina. 2021-06-16 10:29:22 +04:00
John Preston
802918dd11 Disable blend before painting explicitly. 2021-06-11 20:28:55 +04:00
John Preston
9294c8c695 Fix custom OpenGL renderers on macOS. 2021-06-11 17:22:55 +04:00
John Preston
098eb59f2f Remove BackgroundFiller, use glClear in paintEvent. 2021-06-10 23:36:26 +04:00
John Preston
7bc9e12614 For surface with parent backend should be fixed. 2021-06-08 15:51:12 +04:00
John Preston
2a26d4a91a Add texture / image OpenGL helper. 2021-05-25 12:07:11 +04:00
John Preston
8d7ced5c74 Add OpenGL deinit(). 2021-05-22 19:47:37 +04:00
John Preston
ca5b2e6746 Fix GL detection without a parent window. 2021-05-20 12:22:26 +04:00
John Preston
95ee92088e Allow choosing OpenGL / Raster in runtime. 2021-05-19 16:46:58 +04:00