removed sdl from gleswidget, use slots to update mouse movement

This commit is contained in:
Joakim L. Gilje
2021-11-30 21:04:55 +01:00
parent 9cdb4f90ca
commit 7e38ff7d4d
5 changed files with 15 additions and 38 deletions

View File

@@ -76,7 +76,6 @@ main_thread_fn()
is_quit = 1;
}
extern SDL_mutex* mousemutex;
int main(int argc, char* argv[]) {
QApplication app(argc, argv);
#ifdef __APPLE__
@@ -85,7 +84,6 @@ int main(int argc, char* argv[]) {
#endif
elapsed_timer.start();
SDL_Init(SDL_INIT_TIMER);
mousemutex = SDL_CreateMutex();
main_window = new MainWindow();
main_window->show();