Skip to content
Snippets Groups Projects
Unverified Commit 219c6adc authored by Kenneth Rapp's avatar Kenneth Rapp Committed by GitHub
Browse files

Examples: SDL3+SDLRenderer3: Update SDL_SetRenderDrawColorFloat() call. (#7658)

parent b95b2b45
Branches
Tags
No related merge requests found
......@@ -160,7 +160,7 @@ int main(int, char**)
// Rendering
ImGui::Render();
//SDL_RenderSetScale(renderer, io.DisplayFramebufferScale.x, io.DisplayFramebufferScale.y);
SDL_SetRenderDrawColor(renderer, (Uint8)(clear_color.x * 255), (Uint8)(clear_color.y * 255), (Uint8)(clear_color.z * 255), (Uint8)(clear_color.w * 255));
SDL_SetRenderDrawColorFloat(renderer, clear_color.x, clear_color.y, clear_color.z, clear_color.w);
SDL_RenderClear(renderer);
ImGui_ImplSDLRenderer3_RenderDrawData(ImGui::GetDrawData(), renderer);
SDL_RenderPresent(renderer);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment