Skip to content

Commit

Permalink
update and port sdl
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Jun 9, 2024
1 parent 727f33a commit 41c8361
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
3 changes: 2 additions & 1 deletion external/sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ if (NOT TARGET SDL3::SDL3)
# made changes that break imgui release 1.90.6
#GIT_TAG 1103294d33f47ab4c697bb22a9cf27c79c658630 # tip 15-05-2024
#GIT_TAG aacafd62336363077470f678b6217214b3b49473 # tip 28-05-2024
GIT_TAG 5fa9432b7d1c1722de93e1ab46e7a9569a47071e # tip 27-05-2024 - before changes made breaking sdl_image
#GIT_TAG 5fa9432b7d1c1722de93e1ab46e7a9569a47071e # tip 27-05-2024 - before changes made breaking sdl_image
GIT_TAG 9651ca59187c16079846918483c40d6b5c2f454c # tip 09-06-2024

FIND_PACKAGE_ARGS # for the future
)
Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
flake = false;
};
sdl3 = {
url = "github:libsdl-org/SDL/5fa9432b7d1c1722de93e1ab46e7a9569a47071e"; # keep in sync this cmake
url = "github:libsdl-org/SDL/9651ca59187c16079846918483c40d6b5c2f454c"; # keep in sync this cmake
flake = false;
};
sdl3_image = {
Expand Down
7 changes: 1 addition & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,7 @@ int main(int argc, char** argv) {
}
SDL_SetRenderVSync(renderer.get(), SDL_RENDERER_VSYNC_ADAPTIVE);

{
SDL_RendererInfo ri;
if (SDL_GetRendererInfo(renderer.get(), &ri) == 0) {
std::cout << "SDL Renderer: " << ri.name << "\n";
}
}
std::cout << "SDL Renderer: " << SDL_GetRendererName(renderer.get()) << "\n";

IMGUI_CHECKVERSION();
ImGui::CreateContext();
Expand Down

0 comments on commit 41c8361

Please sign in to comment.