1
0
mirror of synced 2024-11-13 18:50:53 +01:00

sys: Fix OpenGL clear color

This commit is contained in:
WerWolv 2022-10-01 21:14:49 +02:00
parent 554e625bda
commit 3504987ab3
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ namespace hex::init {
int display_w, display_h;
glfwGetFramebufferSize(this->m_window, &display_w, &display_h);
glViewport(0, 0, display_w, display_h);
glClearColor(0, 0, 0, 0);
glClearColor(0.00F, 0.00F, 0.00F, 0.00F);
glClear(GL_COLOR_BUFFER_BIT);
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());

View File

@ -496,7 +496,7 @@ namespace hex {
int displayWidth, displayHeight;
glfwGetFramebufferSize(this->m_window, &displayWidth, &displayHeight);
glViewport(0, 0, displayWidth, displayHeight);
glClearColor(0.45f, 0.55f, 0.60f, 1.00f);
glClearColor(0.00F, 0.00F, 0.00F, 1.00f);
glClear(GL_COLOR_BUFFER_BIT);
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());