Skip to content

Commit

Permalink
Examples: Vulkan: Fixed GLFW+Vulkan and SDL+Vulkan clear color not be…
Browse files Browse the repository at this point in the history
…ing set. Broken by a06eb83 (#3390)
  • Loading branch information
ocornut committed Aug 7, 2020
1 parent b15b25b commit ede8825
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Other Changes:
- Demo: Improved "Layout & Scrolling" -> "Child Windows" section.
- Style Editor: Added preview of circle auto-tessellation when editing the corresponding value.
- Backends: OpenGL3: Added support for glad2 loader. (#3330) [@moritz-h]
- Examples: Vulkan: Fixed GLFW+Vulkan and SDL+Vulkan clear color not being set. (#3390) [@RoryO]


-----------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions examples/example_glfw_vulkan/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ int main(int, char**)
const bool is_minimized = (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f);
if (!is_minimized)
{
memcpy(&wd->ClearValue.color.float32[0], &clear_color, 4 * sizeof(float));
FrameRender(wd, draw_data);
FramePresent(wd);
}
Expand Down
1 change: 1 addition & 0 deletions examples/example_sdl_vulkan/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ int main(int, char**)
const bool is_minimized = (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f);
if (!is_minimized)
{
memcpy(&wd->ClearValue.color.float32[0], &clear_color, 4 * sizeof(float));
FrameRender(wd, draw_data);
FramePresent(wd);
}
Expand Down

0 comments on commit ede8825

Please sign in to comment.