Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 9dac051a rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Works if playing, artefacts when in pause

parent 5d7f050e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -4,12 +4,12 @@ Size=400,400 ...@@ -4,12 +4,12 @@ Size=400,400
Collapsed=0 Collapsed=0
[Window][Hello, world!] [Window][Hello, world!]
Pos=323,198 Pos=91,122
Size=703,254 Size=703,254
Collapsed=0 Collapsed=0
[Window][Dear ImGui Demo] [Window][Dear ImGui Demo]
Pos=1256,131 Pos=999,94
Size=550,680 Size=550,680
Collapsed=0 Collapsed=0
......
...@@ -321,7 +321,7 @@ int main(int argc, char **argv) ...@@ -321,7 +321,7 @@ int main(int argc, char **argv)
// See render_gl.h on what OpenGL environment mpv expects, and // See render_gl.h on what OpenGL environment mpv expects, and
// other API details. // other API details.
mpv_render_context_render(mpv_gl, params); mpv_render_context_render(mpv_gl, params);
SDL_GL_SwapWindow(window); // SDL_GL_SwapWindow(window);
} }
// Start the Dear ImGui frame // Start the Dear ImGui frame
...@@ -368,10 +368,11 @@ int main(int argc, char **argv) ...@@ -368,10 +368,11 @@ int main(int argc, char **argv)
// Rendering // Rendering
ImGui::Render(); ImGui::Render();
glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y); // glViewport(0, 0, (int)io.DisplaySize.x, (int)io.DisplaySize.y);
glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w); // glClearColor(clear_color.x, clear_color.y, clear_color.z, clear_color.w);
glClear(GL_COLOR_BUFFER_BIT); // glClear(GL_COLOR_BUFFER_BIT);
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
SDL_GL_SwapWindow(window); SDL_GL_SwapWindow(window);
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter