mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 03:09:01 +08:00
fix openglsupport unit test when defaulting to row major
This commit is contained in:
parent
64356a622d
commit
3a4d56171d
@ -35,7 +35,7 @@ using namespace Eigen;
|
||||
#define VERIFY_MATRIX(CODE,REF) { \
|
||||
glLoadIdentity(); \
|
||||
CODE; \
|
||||
Matrix4f m; m.setZero(); \
|
||||
Matrix<float,4,4,ColMajor> m; m.setZero(); \
|
||||
glGet(GL_MODELVIEW_MATRIX, m); \
|
||||
if(!(REF).cast<float>().isApprox(m)) { \
|
||||
std::cerr << "Expected:\n" << ((REF).cast<float>()) << "\n" << "got\n" << m << "\n\n"; \
|
||||
|
Loading…
x
Reference in New Issue
Block a user