0xc3 hai 1 mes
pai
achega
9fe3cb741b
Modificáronse 1 ficheiros con 4 adicións e 7 borrados
  1. 4 7
      src/saura/core/platform/platform.cpp

+ 4 - 7
src/saura/core/platform/platform.cpp

@@ -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(); }