fix: android comptatibility
This commit is contained in:
@@ -38,8 +38,7 @@ void init(SDL_Window* sdl_window, SDL_GLContext sdlContext, td::render::Renderer
|
||||
ImGui::CreateContext();
|
||||
ImGui::StyleColorsDark();
|
||||
ImGui_ImplSDL2_InitForOpenGL(sdl_window, gl_context);
|
||||
const char* glslVersion = "#version 130";
|
||||
ImGui_ImplOpenGL3_Init(glslVersion);
|
||||
ImGui_ImplOpenGL3_Init();
|
||||
ImFontConfig c;
|
||||
c.SizePixels = 25;
|
||||
ImGui::GetIO().Fonts->AddFontDefault(&c);
|
||||
@@ -320,17 +319,8 @@ void tick() {
|
||||
|
||||
lastTime = td::utils::getTime();
|
||||
}
|
||||
|
||||
void pollEvents(){
|
||||
SDL_Event event;
|
||||
while(SDL_PollEvent(&event)){
|
||||
ImGui_ImplSDL2_ProcessEvent(&event);
|
||||
}
|
||||
}
|
||||
|
||||
void render() {
|
||||
tick();
|
||||
pollEvents();
|
||||
beginFrame();
|
||||
client->render();
|
||||
if (client->isConnected())
|
||||
|
||||
Reference in New Issue
Block a user