Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #11432 from Pokechu22/generic-vertex-loader-test-e…
…rror VertexLoader: Fix loading tangent/binormal caches with NormalIndex3
- Loading branch information
Showing
6 changed files
with
132 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // Copyright 2023 Dolphin Emulator Project | ||
| // SPDX-License-Identifier: GPL-2.0-or-later | ||
| // Based on gtest_main.cc | ||
|
|
||
| #include <cstdio> | ||
| #include <fmt/format.h> | ||
|
|
||
| #include "Common/MsgHandler.h" | ||
|
|
||
| #include "gtest/gtest.h" | ||
|
|
||
| namespace | ||
| { | ||
| bool TestMsgHandler(const char* caption, const char* text, bool yes_no, Common::MsgType style) | ||
| { | ||
| fmt::print(stderr, "{}\n", text); | ||
| ADD_FAILURE(); | ||
| // Return yes to any question (we don't need Dolphin to break on asserts) | ||
| return true; | ||
| } | ||
| } // namespace | ||
|
|
||
| int main(int argc, char** argv) | ||
| { | ||
| fmt::print(stderr, "Running main() from UnitTestsMain.cpp\n"); | ||
| Common::RegisterMsgAlertHandler(TestMsgHandler); | ||
|
|
||
| ::testing::InitGoogleTest(&argc, argv); | ||
| return RUN_ALL_TESTS(); | ||
| } |