mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-11 20:16:47 +00:00
Enable OpenGL
This commit is contained in:
parent
552b840409
commit
1515197c8a
@ -62,6 +62,8 @@ DOS_API void DOS_CALL dos_qcoreapplication_process_events_timed(DosQEventLoopPro
|
||||
|
||||
DOS_API void DOS_CALL dos_qapplication_enable_hdpi(void);
|
||||
|
||||
DOS_API void DOS_CALL dos_qapplication_initialize_opengl(void);
|
||||
|
||||
/// \brief Create a QGuiApplication
|
||||
/// \note The created QGuiApplication should be freed by calling dos_qguiapplication_delete()
|
||||
DOS_API void DOS_CALL dos_qguiapplication_create(void);
|
||||
|
@ -77,6 +77,11 @@ void dos_qapplication_enable_hdpi()
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
}
|
||||
|
||||
void dos_qapplication_initialize_opengl()
|
||||
{
|
||||
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
|
||||
}
|
||||
|
||||
void dos_qguiapplication_create()
|
||||
{
|
||||
static int argc = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user