mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Examples: Reworked setup of clear color to be compatible with transparent values. (#2693, #2764, #2766, #2873, #3447, #3813, #3816)
This commit is contained in:
		| @@ -167,7 +167,7 @@ static void main_loop(void* arg) | ||||
|     ImGui::Render(); | ||||
|     SDL_GL_MakeCurrent(g_Window, g_GLContext); | ||||
|     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.w, clear_color.y * clear_color.w, clear_color.z * clear_color.w, clear_color.w); | ||||
|     glClear(GL_COLOR_BUFFER_BIT); | ||||
|     ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData()); | ||||
|     SDL_GL_SwapWindow(g_Window); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ocornut
					ocornut