Skip to content

Commit

Permalink
Update older macOS GitHub Actions runner to 13
Browse files Browse the repository at this point in the history
- Fix compilation with newer versions of ImGui
  • Loading branch information
encelo committed Dec 12, 2024
1 parent e08cb92 commit 2394139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
BuildType: [Debug, Release, BinDist]
os: [macOS-12, macOS-14]
os: [macOS-13, macOS-14]

runs-on: ${{ matrix.os }}

Expand All @@ -36,7 +36,7 @@ jobs:
if [[ "${{ matrix.os }}" == "macOS-14" ]]; then
export OS=macos14
else
export OS=macos12
export OS=macos13
fi
export CC=appleclang
export BRANCH_NAME=$(git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD)
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
if [[ "${{ matrix.os }}" == "macOS-14" ]]; then
export OS=macos14
else
export OS=macos12
export OS=macos13
fi
export CC=appleclang
export PROJECT_EXT=dmg
Expand Down
4 changes: 2 additions & 2 deletions src/particle_editor_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ void MyEventHandler::createGuiTextures()
{
nc::Texture &tex = *textures_[texIndex_];
const ImVec2 size(tex.width(), tex.height());
ImGui::Image(tex.guiTexId(), size);
ImGui::Image(static_cast<ImTextureID>(reinterpret_cast<intptr_t>(tex.guiTexId())), size);
}
}
ImGui::PopID();
Expand Down Expand Up @@ -720,7 +720,7 @@ void MyEventHandler::createGuiSprite()
if (spriteState_.flippedY)
nctl::swap(uv0.y, uv1.y);

ImGui::Image(tex.guiTexId(), size, uv0, uv1);
ImGui::Image(static_cast<ImTextureID>(reinterpret_cast<intptr_t>(tex.guiTexId())), size, uv0, uv1);

int minX = spriteState_.texRect.x;
int maxX = minX + spriteState_.texRect.w;
Expand Down

0 comments on commit 2394139

Please sign in to comment.