mirror of
https://github.com/xemu-project/nxdk_pgraph_tests.git
synced 2024-11-23 01:59:55 +00:00
Fixes inverted matrix multiply in cubemap test.
This commit is contained in:
parent
0f16a1120f
commit
a351a6e42d
@ -115,8 +115,11 @@ static bool discover_historical_crashes(const std::string& log_file_path,
|
||||
#endif
|
||||
static bool process_config(const char* config_file_path, std::vector<std::shared_ptr<TestSuite>>& test_suites);
|
||||
|
||||
extern "C" __cdecl int automount_d_drive(void);
|
||||
|
||||
/* Main program function */
|
||||
int main() {
|
||||
automount_d_drive();
|
||||
XVideoSetMode(kFramebufferWidth, kFramebufferHeight, 32, REFRESH_DEFAULT);
|
||||
|
||||
// Reserve 4 times the size of the default framebuffers to allow for antialiasing.
|
||||
|
@ -253,7 +253,7 @@ void TextureCubemapTests::TestDotSTRCubemap(const std::string &name, uint32_t do
|
||||
MatrixTranslate(model_matrix, translation);
|
||||
|
||||
matrix4_t mv_matrix;
|
||||
MatrixMultMatrix(matrix, model_matrix, mv_matrix);
|
||||
MatrixMultMatrix(model_matrix, matrix, mv_matrix);
|
||||
host_.SetFixedFunctionModelViewMatrix(mv_matrix);
|
||||
|
||||
auto inv_projection = host_.GetFixedFunctionInverseCompositeMatrix();
|
||||
|
22
third_party/CMakeLists.txt
vendored
22
third_party/CMakeLists.txt
vendored
@ -73,4 +73,26 @@ if (NOT NO_OPT)
|
||||
-Wno-everything
|
||||
)
|
||||
target_link_options(xbox_math3d PRIVATE "/debug:none")
|
||||
else ()
|
||||
if (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
target_compile_options(
|
||||
xbox_math3d
|
||||
PRIVATE
|
||||
-g
|
||||
-gdwarf-4
|
||||
-O0
|
||||
-Wall
|
||||
-fstandalone-debug
|
||||
)
|
||||
target_link_options(xbox_math3d PRIVATE "/debug:full")
|
||||
else ()
|
||||
target_compile_options(
|
||||
xbox_math3d
|
||||
PRIVATE
|
||||
-O3
|
||||
-fno-strict-aliasing
|
||||
-Wall
|
||||
)
|
||||
target_link_options(xbox_math3d PRIVATE "/debug:none")
|
||||
endif ()
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user