|
|
@@ -15,12 +15,6 @@ void Platform::init(void *window_handle) {
|
|
|
throw std::runtime_error("Failed SDL_Init!");
|
|
|
}
|
|
|
|
|
|
- // GL 3.0 + GLSL 130
|
|
|
- SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, 0);
|
|
|
- SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
|
|
|
- SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
|
|
|
- SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
|
|
|
-
|
|
|
SDL_PropertiesID props = SDL_CreateProperties();
|
|
|
SDL_SetNumberProperty(props, SDL_PROP_WINDOW_CREATE_X11_WINDOW_NUMBER,
|
|
|
(Sint64)window_handle);
|
|
|
@@ -31,7 +25,10 @@ void Platform::init(void *window_handle) {
|
|
|
ui_ctx->init(window_ctx);
|
|
|
}
|
|
|
|
|
|
-void Platform::draw_begin() { this->ui_ctx->begin(); }
|
|
|
+void Platform::draw_begin() {
|
|
|
+ // update_events();
|
|
|
+ this->ui_ctx->begin();
|
|
|
+}
|
|
|
|
|
|
void Platform::draw_end() { this->ui_ctx->end(); }
|
|
|
|