Skip to content

Commit

Permalink
[CI] Fixed typo in LLGL_D3D12_ENABLE_FEATURELEVEL parameter for Windo…
Browse files Browse the repository at this point in the history
…ws CIS script.
  • Loading branch information
LukasBanana committed Jun 9, 2024
1 parent 823f75f commit 8e1a5c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
-DLLGL_VK_ENABLE_SPIRV_REFLECT=ON
-DLLGL_GL_ENABLE_OPENGL2X=ON
"-DLLGL_D3D11_ENABLE_FEATURELEVEL=${{ matrix.generator == 'Visual Studio 17 2022' && 'Direct3D 11.3' || 'Direct3D 11.0' }}"
"-DLLGL_D3D11_ENABLE_FEATURELEVEL=${{ matrix.generator == 'Visual Studio 17 2022' && 'Direct3D 12.2' || 'Direct3D 12.0' }}"
"-DLLGL_D3D12_ENABLE_FEATURELEVEL=${{ matrix.generator == 'Visual Studio 17 2022' && 'Direct3D 12.2' || 'Direct3D 12.0' }}"
- name: Build
run: |
Expand Down
6 changes: 3 additions & 3 deletions sources/Core/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static void PostReport(ReportType type, const char* text)
{
std::lock_guard<std::mutex> guard{ g_logState.lock };

if (auto listenerStd = g_logState.listenerStd.get())
if (LogListener* listenerStd = g_logState.listenerStd.get())
listenerStd->Invoke(type, text);

for (const auto& listener : g_logState.listeners)
Expand Down Expand Up @@ -139,7 +139,7 @@ LLGL_EXPORT LogHandle RegisterCallbackReport(Report& report)
return RegisterCallback(
[](ReportType type, const char* text, void* userData)
{
if (auto report = reinterpret_cast<Report*>(userData))
if (auto* report = reinterpret_cast<Report*>(userData))
{
if (type == ReportType::Error)
report->Errorf("%s", text);
Expand Down Expand Up @@ -172,7 +172,7 @@ LLGL_EXPORT LogHandle RegisterCallbackStd()
}
return reinterpret_cast<LogHandle>(g_logState.listenerStd.get());
}
return nullptr;
return LogHandle{};
}

LLGL_EXPORT void UnregisterCallback(LogHandle handle)
Expand Down

0 comments on commit 8e1a5c1

Please sign in to comment.